Book-Trade is a hub for finding and connecting with others to exchange books. Features include seperate users, books by genre, jobs for cleaning up old posts, and admin controls. This is a final checkpoint project for rails.
- Clone the repository:
git clone https://github.com/pulibrary/book-trade-xander.git
cd book-trade-xander
- Install dependecies:
bundle install
- Install Lando from https://github.com/lando/lando/releases
- Create database:
rails db:create
rails db:migrate
- Seed database:
rails db:seed
- Drop database and reseed (warning, all data will be lost)
rake db:reseed
- Install Redis:
brew install redis
- Jobs are performed by background workers. Run Sidekiq to execute background jobs that are queued:
bundle exec sidekiq
- Start lando services:
rake servers:start
- Start Redis with
brew services start redis
orredis-server
- Start the local server
rails s
- See the application at http://localhost:3000/
Note: Stop lando services with rake servers:stop
or lando stop
. Stop Redis with brew services stop redis