Skip to content

Commit

Permalink
Correct development documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewKvalheim committed Oct 31, 2020
1 parent 4843555 commit 7a8d47a
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,28 +29,33 @@ We are using a containerized development environment.
docker-compose build --build-arg "UID=$UID"
```

4. Run the test suite:
4. Initialize the database:

```bash
docker-compose run --rm web rspec
docker-compose run --rm web bundle exec rake db:setup
```

5. Start the application at [`localhost:3000`](http://localhost:3000/):
5. Run the test suite:

```bash
docker-compose run --rm web bundle exec rspec
```

6. Start the application at [`localhost:3000`](http://localhost:3000/):

```bash
docker-compose run --rm web rake db:setup
docker-compose up
```

6. Create a user account in the web interface. The first user will be automatically assigned the admin role.
7. Create a user account in the web interface. The first user will be automatically assigned the admin role.

7. To open the Rails console:
8. To open the Rails console:

```bash
docker-compose exec web rails console
docker-compose exec web bundle exec rails console
```

8. To clean up:
9. To clean up:

```bash
docker-compose down --rmi 'all' --volumes
Expand Down

0 comments on commit 7a8d47a

Please sign in to comment.