2424
2525 5. [Yarn](https://classic.yarnpkg.com/lang/en/docs/install/)
2626
27- 2. Run the brew command for the Mac in the [compiling section](https://github.com/Automattic/node-canvas ? tab=readme-ov- file#compiling) of the node-canvas readme. For other systems, please see [compiling section](https://github.com/Automattic/node-canvas ? tab=readme-ov-file#compiling) for instructions.
27+ 2. Copy the example dev yaml file
2828
29- ` ` ` sh
30- brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
31- ` ` `
29+ ` ` ` sh
30+ cp src/main/resources/config/application-dev-example.yml src/main/resources/config/application-dev.yml
31+ ` ` `
32+
33+ 3. Run the brew command for the Mac in the [compiling section](https://github.com/Automattic/node-canvas? tab=readme-ov-file#compiling)
34+ of the node-canvas readme. For other systems, please see
35+ [compiling section](https://github.com/Automattic/node-canvas? tab=readme-ov-file#compiling)
36+ for instructions.
37+
38+ ` ` ` sh
39+ brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
40+ ` ` `
3241
33- 3 . After installing Node and yarn, you should be able to run the following command
42+ 4 . After installing Node and yarn, you should be able to run the following command
3443 to install development tools. You will only need to run this command when
3544 dependencies change in [package.json](package.json).
3645
@@ -40,7 +49,7 @@ brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
4049
4150 We use yarn scripts and [Webpack](https://webpack.js.org/) as our build system.
4251
43- 4 . If you are using redis as a cache, you will have to launch a cache server (Optional).
52+ 5 . If you are using redis as a cache, you will have to launch a cache server (Optional).
4453
4554 - To start your cache server, run:
4655
@@ -59,7 +68,7 @@ brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
5968 See [here](https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-caching.html#boot-features-caching-provider-none)
6069 for details.
6170
62- 5 . Configure Keycloak and Google SSO
71+ 6 . Configure Keycloak and Google SSO
6372
6473 To log in to your app, you' ll need to have [Keycloak](https://keycloak.org)
6574 up and running.
@@ -120,7 +129,7 @@ brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
120129 scope: openid,profile,email
121130 ```
122131
123- 6 . Configure Firebase
132+ 7 . Configure Firebase
124133
125134 1. Go to [Firebase Console](https://console.firebase.google.com/) and create
126135 a new project
@@ -149,7 +158,9 @@ brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
149158 9. Click **Project settings**
150159 10. Choose **Service Accounts** on header
151160 11. Under **Firebase Admin SDK** section, click on **Generate new private key**
152- 12. Move the service account credentials under `src/main/resources/<CREDENTIALS_FILENAME>.json`
161+ 12. Move the service account credentials under `src/main/resources/firebase.json`
162+ > [!WARNING]
163+ > Never commit the `firebase.json` file to git!
153164 13. Update `application.firebase.service-account-credentials-path`
154165 to the filename
155166 14. Under **Project Overview** page in the **General** tab under the **Your apps**
@@ -158,10 +169,18 @@ brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
158169 - You do not need to setup firebase hosting
159170 16. The resulting credential and paste them in the corresponding fields
160171 in `application.firebase`
161- 17. Expand **Build** and click **Authentication**
162- 18. Click the **Sign-in method** section and add email/password provider
172+ 17. Copy example front configuration file
173+
174+ ```sh
175+ cp local-frontend-config-example.json local-frontend-config.json
176+ ```
177+
178+ 18. Copy the same credentials you put in `application.firebase` into the `local-frontend-config.json`
179+ file.
180+ 19. Expand **Build** and click **Authentication**
181+ 20. Click the **Sign-in method** section and add email/password provider
163182
164- 7 . Verify that your mysql configuration in [application-dev.yaml](src/main/resources/config/application-dev.yml)
183+ 8 . Verify that your mysql configuration in [application-dev.yaml](src/main/resources/config/application-dev.yml)
165184 is correct for you mysql server instance.
166185
167186 ```yaml
@@ -172,7 +191,7 @@ brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
172191 password: root
173192 ```
174193
175- 8 . Run the application (Don' t login just yet)
194+ 9 . Run the application (Don' t login just yet)
176195
177196 - Note your a oncokb_curation schema will be created in your mysql database.
178197 Data will also be seeded for it.
@@ -181,40 +200,40 @@ brew install pkg-config cairo pango libpng jpeg giflib librsvg pixman
181200 ./mvnw
182201 ` ` `
183202
184- 9 . Wait until the server is listening to requests and is able to redirect you to
185- the login screen. (server url defaults to ` http://localhost:9090` )
203+ 10 . Wait until the server is listening to requests and is able to redirect you to
204+ the login screen. (server url defaults to ` http://localhost:9090` )
186205
187- 10 . Add a login for yourself into your mysql instance. Replace < your_email>
206+ 11 . Add a login for yourself into your mysql instance. Replace < your_email>
188207 with your gmail email address.
189208
190- ` ` ` sql
191- INSERT INTO ` oncokb_curation` .` user`
192- (
193- ` login` ,
194- ` email` ,
195- ` created_by` ,
196- ` activated` )
197- VALUES
198- (' <your_email>' ,
199- ' <your_email>' ,
200- ' SYSTEM' ,
201- 1);
202-
203- SET @UserID = (SELECT Id
204- FROM ` oncokb_curation` .` user`
205- WHERE email = ' <your_email>' );
206-
207- INSERT INTO ` oncokb_curation` .` user_authority`
208- (user_id, authority_name)
209+ ` ` ` sql
210+ INSERT INTO ` oncokb_curation` .` user`
211+ (
212+ ` login` ,
213+ ` email` ,
214+ ` created_by` ,
215+ ` activated` )
209216 VALUES
210- (@UserId, ' ROLE_ADMIN' ),
211- (@UserId, ' ROLE_DEV' ),
212- (@UserId, ' ROLE_CURATOR' ),
213- (@UserId, ' ROLE_USER' );
214-
215- ` ` `
216-
217- 11. Login to curation!
217+ (' <your_email>' ,
218+ ' <your_email>' ,
219+ ' SYSTEM' ,
220+ 1);
221+
222+ SET @UserID = (SELECT Id
223+ FROM ` oncokb_curation` .` user`
224+ WHERE email = ' <your_email>' );
225+
226+ INSERT INTO ` oncokb_curation` .` user_authority`
227+ (user_id, authority_name)
228+ VALUES
229+ (@UserId, ' ROLE_ADMIN' ),
230+ (@UserId, ' ROLE_DEV' ),
231+ (@UserId, ' ROLE_CURATOR' ),
232+ (@UserId, ' ROLE_USER' );
233+
234+ ` ` `
235+
236+ 12. Login to curation!
218237
219238# # Building for production
220239
0 commit comments