Skip to content

Commit

Permalink
Update readme file to run databases locally
Browse files Browse the repository at this point in the history
  • Loading branch information
mrica-equinor committed Jul 3, 2024
1 parent 448de97 commit a0513b7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,11 @@ You can do this by going to `File` -> `Preferences` -> `Settings` and then searc

The application reads custom environment variables from the `.env` file on startup. The files need to be prefixed `REACT_APP_` to be included in the application.
These are parsed and defined in [config.ts](./src/config.ts).

## Run locally with Staging and Prod Databases

To run locally towards the databases follow the steps below:

1. Change UseInMemoryDatabase to false on appsettings.Local and set ASPNETCORE_ENVIRONMENT to the correct environment on launchSettings.json.
2. Update AZURE_CLIENT_ID and AZURE_CLIENT_SECRET in the .env located in backend/api folder.
3. Update REACT_APP_BACKEND_API_SCOPE in the .env located in the frontend folder.

0 comments on commit a0513b7

Please sign in to comment.