-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dev environment instructions to README
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,14 @@ | ||
# SBHacks API | ||
|
||
## Setting up your development environment | ||
|
||
- Clone this repo | ||
- Install ruby 2.7.1, preferably using [rvm](https://rvm.io/rvm/install#basic-install) | ||
- Install [PostgreSQL](https://www.postgresql.org/download/) | ||
(Note: PostgreSQL must be installed before you run `bundle install`) | ||
- Run `bundle install` to install dependencies | ||
- Run `rails db:create` to create a development and test database (PostgreSQL must be running!) | ||
- Run `rails db:schema:load` to load the database schemas onto the development and test databases | ||
- Run `rails db:seed` to load initial data into the development database | ||
- Obtain the `development.key` and put it in `config/credentials`. This is used for decrypting the encrypted | ||
secrets file. |