Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

pulibrary/book-trade-xander

Repository files navigation

Book-Trade

CircleCI

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.


Setup

  1. Clone the repository:
git clone https://github.com/pulibrary/book-trade-xander.git
cd book-trade-xander
  1. Install dependecies:
bundle install
  1. Install Lando from https://github.com/lando/lando/releases

Database Setup

  • 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

Running background jobs in development

  1. Install Redis:
brew install redis
  1. Jobs are performed by background workers. Run Sidekiq to execute background jobs that are queued:
bundle exec sidekiq

Launch the project locally

  1. Start lando services:
rake servers:start
  1. Start Redis with brew services start redis or redis-server
  2. Start the local server
rails s
  1. 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


About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published