Biking Conditions Reporting App
- Front-end GitHub repo: Repo
- Back-end GitHub repo: Repo
- Deployed application: App
- Production back-end: DB
Verb | URI Pattern | Controller#Action |
---|---|---|
POST | /sign-up |
users#signup |
POST | /sign-in |
users#signin |
DELETE | /sign-out |
users#signout |
PATCH | /change-password |
users#changepw |
GET | /condreps |
condreps#index |
GET | /my-condreps |
condreps#mine |
POST | /condreps |
condreps#create |
GET | /condreps/:id |
condreps#show |
PATCH | /condreps/:id |
condreps#update |
DELETE | /condreps/:id |
condreps#destroy |
- Fork and clone this repo
- Make sure you have these tools available on your machine:
- Ruby
- Rails
- PostgreSQL
- Install dependencies with
bundle install
- Set up your environment variables:
- Create a .env file in your project's root directory
- Generate 2 secret keys by typing
bundle exec rails secret
(2x) - Paste them into your .env file as
SECRET_KEY_BASE_DEVELOPMENT
andSECRET_KEY_BASE_TEST
- Set up your database with these commands:
bin/rails db:drop
(if database already exists)bin/rails db:create
bin/rails db:migrate
bin/rails db:seed
- Start your server with
bin/rails server
- Install the front end