DailyBlogger is a simple Rails chat app built with Ruby on Rails.
MIT License
This is a simple chat application where users create channels and join any of the available channels after they have creating a user account. It is built using Ruby on Rails.
In future, I hope to implement the following features to this application
To use this project you need to have the latest version of Ruby installed. If you do not have Ruby installed, You can follow these steps
You first need to install rbenv and then use it to install Ruby
Open your terminal and run the following command:
$ git clone https://github.com/rbenv/rbenv.git ~/.rbenv
We simply clone rbenv GitHub repository into the ~/.rbenv folder.
You need to have Git installed on your system. If not, simply run sudo apt install git
from your command line.
Next, run the following commands to set up rbenv:
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc $ echo 'eval "$(rbenv init -)"' >> ~/.bashrc $ exec $SHELL
Next, you need to download the ruby-build plugin into the plugins folder of rbenv as follows:
$ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build
The ruby-build plugin adds the install command to rbenv.
Note: You can also install rbenv and ruby-build using the sudo apt-get install rbenv
ruby-build command.
Finally, you can install Ruby using the following command:
$ rbenv install (Prefered ruby version) $ rbenv global (Ruby Version)
This is the output in the terminal:
Downloading ruby-version.tar.bz2... -> https://cache.ruby-lang.org/pub/ruby/2.7/ruby-version.tar.bz2 Installing ruby-version... Installed ruby-version to /home/<user_name>/.rbenv/versions/version
If your installation fails, make sure you install the libreadline-dev and zlib1g-dev dependencies:
$ sudo apt-get install -y libreadline-dev zlib1g-dev
You can check out your Ruby version using the following command:
$ ruby -v
Next, you need to install bundler with gem:
$ gem install bundler
This will install bundler v2.0.2 or later.
After installing bundler, you need to run:
$ rbenv rehash
After installing Ruby , let's now see how we can install Ruby on Rails.
Open a new terminal and run the following command:
$ gem install rails -v (latest version of rails)
Next, run the following command to make the rails executable available:
$ rbenv rehash
That's it! You can verify your installed Rails version by running the following command:
$ rails -v
You can then clone this project
$ git clone https://github.com/ampaire/DailyBlogger.git
.
In the terminal, run
$ bundle install
to install all the dependencies that were used in creating this app.
Run $ rails db:migrate
to migrate the database.
Now you are good to go! Just run $ rails server
You should be able to see your project at localhost:3000 server in your favorite browser.
Feel free to open an issue at the issuespage.