Skip to content

Commit

Permalink
added step that server has to be running before populating db
Browse files Browse the repository at this point in the history
  • Loading branch information
flazedd committed Apr 3, 2022
1 parent d0077f6 commit 421e801
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,13 @@ This tutorial assumes that:
6. Select `Spring Boot` from the list.
7. Set the name to `Main` and Main class to `server.Main`.
8. Click `OK`.
9. Navigate to `repository-template/helper-scripts` and open your terminal in that directory.
10. Copy the absolute path of the activities.json file, it can be found in `repository-template/server/src/main/resources/activities.json`
11. Execute the following command in your terminal:
9. Run the server by selecting the `Main` configuration and clicking the green play button, this is necessary
for the following step!
10. Navigate to `repository-template/helper-scripts` and open your terminal in that directory.
11. Copy the absolute path of the activities.json file, it can be found in `repository-template/server/src/main/resources/activities.json`
12. Execute the following command in your terminal:
```python3 add_activities.py "C:\Users\YourPath\activities.json"```
12. You should see a bunch of `<Response [200]>` printing to your terminal, once this finishes the database
13. You should see a bunch of `<Response [200]>` printing to your terminal, once this finishes the database
has been successfully populated with activities

### Running the server
Expand Down

0 comments on commit 421e801

Please sign in to comment.