This is the Ruby on Rails API for Vilego Blog. Vilego Blog is a blog post app that helps a user create articles for other users to read and interact with.
Link to the Frontend
Install Ruby
- Verify the current version of Ruby running using the following command:
$ ruby -v
- We recommend version 3.0.2. If you need to upgrade you can install it using rvm:
$ rvm install 3.0.2 --default
Install Rails
- Run the command:
$ gem install rails
Install SQLite 3
- Install SQLite 3 using the following command:
$ sudo apt install sqlite3
- Verify the installation using the command:
$ sqlite3 --version
- Clone the repository and change directory into the folder using commands:
$ git clone git@github.com:Edward-ochieng/Blog-app-backend.git
$ cd Blog-app-backend
- Install gems using command:
$ bundle install
- Migrate and seed data by running the commands:
$ rails db:migrate
$ rails db:seed
- Launch the rails server using command:
$ rails s
This project is under MIT license.