Skip to content

Commit

Permalink
[JN-563] Setup cunningh as a superuser and update README (#542)
Browse files Browse the repository at this point in the history
  • Loading branch information
denniscunningham authored Sep 12, 2023
1 parent f5a8fa5 commit 5331f57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ In IntelliJ, File -> New -> Protject from Existing Sources. When importing the
* Preferences > Build, Execution, Deployment > Build Tools > Gradle > Gradle Projects > \[this project\] > Gradle JVM
* Recommended setting for this is "Project SDK"
* In Preferences > Build, Execution, Deployment > Compiler > Annotation Processors, make sure annotation processing is enabled (otherwise lombok getters/setters won't work)
* Create two Spring Boot Run/Debug Configurations.
* Create two Spring Boot Run/Debug Configurations (Run > Edit Configurations)
* ApiAdminApp (in api-admin module)
* set active profiles of "human-readable-logging" and "development"
* disable launch optimization
Expand All @@ -84,7 +84,7 @@ In IntelliJ, File -> New -> Protject from Existing Sources. When importing the
### Running the application
#### Admin tool (study manager, population)
* API (api-admin module)
In intelliJ, you can either run ApiAdminApp (from the api-admin module) directly, or execute the "bootRun" gradle task.
In intelliJ, you can either run ApiAdminApp directly (use the Run menu to choose ApiAdminApp), or execute the "bootRun" gradle task.
In basic development mode, this will only serve the API, not the frontend assets.

To make the application useful, you will want to populate some users and studies. After the admin API is running,
Expand All @@ -104,7 +104,7 @@ From the command line:
Then go to `localhost:3000`

##### Participant API (api-participant module)
In intelliJ, you can either run ApiParticipantApp (from the api-participant module) directly, or execute the "bootRun" gradle task.
In intelliJ, you can either run ApiParticipantApp directly (use the Run menu to choose ApiParticipantApp), or execute the "bootRun" gradle task.
In basic development mode, this will only serve the API, not the frontend assets.

##### Participant UI (ui-participant module)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class BaseSeedPopulator {
"adminUsers/myanaman.json", "adminUsers/kkaratza.json",
"adminUsers/jkorte.json", "adminUsers/egwozdz.json",
"adminUsers/mflinn.json", "adminUsers/nwatts.json",
"adminUsers/mbemis.json");
"adminUsers/mbemis.json", "adminUsers/cunningh.json");
public static final List<String> ENVIRONMENTS_TO_POPULATE =
Arrays.asList("environments/sandbox.json", "environments/irb.json", "environments/live.json");

Expand Down
4 changes: 4 additions & 0 deletions populate/src/main/resources/seed/adminUsers/cunningh.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"username": "[email protected]",
"superuser": true
}

0 comments on commit 5331f57

Please sign in to comment.