This project is a Ruby on Rails capstone project based on a redesign of Twitter. It is a place where people can share opinions or reviews about books with people who follow them. Reviews can be commented on and voted on so that other users may be confident about posted reviews.
You can visit the deployed version of the app via this link
- Ruby on rails
To get a local copy up and running follow these simple example steps:
- Clone the repository as indicated by Setup section below
- Text editor
- GitHub
- Git
- ruby
- ruby on rails
Clone repository from github to your local drive by following these steps:
- Go to the main page of the repository
- Above the listed files, click the green Code button
- You can clone the repository using:
- GitHub CLI: gh repo
$ git clone github.com/barackm/book-opinions
. - SSH:
$ git clone git@github.com:barackm/book-opinions.git
. - HTTPS:
$ git clone https://github.com/barackm/book-opinions
.
- GitHub CLI: gh repo
- Open Terminal
- Change the current working directory to the location you want the cloned directory
- Type one of the git clone commands listed above.
- Press Enter to create your local clone
- Remember: Yarn packages need to be installed by running the command
yarn install
for local setup. Otherwise, the app generates an error. - Install all the available gems with the command
bundle install
- Create a database by typing in the terminal
rails db:create
and thenrails db:migrate
to define changes to your database schema - For webpacker we need to run the command
rails webpacker:install
- Open your terminal and type
rails s
. After that join to localhost athttp://localhost:3000/
- Feel free to sign up or sign in and start posting!
- Install Atom or Microsoft Visual Studio text editor to view the code on your local machine.
- Install Git.
- Install ruby
- Install ruby on rails
- This project includes unit tests and integration tests, to run the tests you will just need to run the following command in the terminal from the root of the project
$ rails db:migrate RAILS_ENV=test
$ rspec --format documentation
👤 Barack Mukelenga
- GitHub: @barackm
- Twitter: @BarackMukelenga
- LinkedIn: Barack Mukelenga
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!
- Microverse
- Gregoire Vella for the design inspiration.