This is a reading list app. It allows users to make a collection of books and with it make organized reading lists based on different genres. Books and reading lists can be set to either public or private. Public reading lists can have likes only. A user can like and comments on a certain book.
MIT License
Book shelf is a reading list app. It allows users to make a collection of books and with it make organized reading lists based on different genres. Books and reading lists can be set to either public or private. Public reading lists can have likes only. A user can like and comments on a certain book. Only a logged in user can add books, create reading lists and actively engage with the other content on the website.
Coming soon
To get a local copy up and running, follow these steps.
In order to run this project you need:
Git
and Ruby
gem install rails
Install this project with:
bundle install
Optional, if you have privacy concerns
.env
file with the following content:POSTGRES_USER=postgres
# If you declared a password when creating the database:
POSTGRES_PASSWORD=YourPassword
POSTGRES_HOST=localhost
POSTGRES_DB=book_shelf_development
POSTGRES_TEST_DB=book_shelf_test
<% ENV['POSTGRES_PASSWORD'] %>
for your password, then add the rest in a similar wayCreate Database (Mandatory)
rails db:create
If you have made a migration then run this command
rails db:migrate
rails db:seed
To run the project, execute the following command:
rails s -p 3000 # # for serving the API on localhost:3000
Run tests
bundle exec rspec
Tracy Musongole
Contributions, issues, and feature requests are welcome!
Feel free to check the issues page.
Give a if you like this project!
How I can install rails?
gem install rails
to install rails.How I can run this project?
How I can run tests?
bundle
and then run rspec test-file-directory
for a specific file or rspec
to run all the tests.This project is MIT licensed.