From 17477ccf2c9a70adb97b3fe4cc15d02ba59f6153 Mon Sep 17 00:00:00 2001 From: Illia Halchun Date: Tue, 19 Dec 2023 13:48:58 +0100 Subject: [PATCH] FIX Fix local statup instructions --- back-end/README.md | 2 +- back-end/WebApi/appsettings.Development.json | 1 + front-end/README.md | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/back-end/README.md b/back-end/README.md index 251dffe..6086ce7 100644 --- a/back-end/README.md +++ b/back-end/README.md @@ -44,7 +44,7 @@ Once you can run tests of the solutions, it's time to spin off a database and ru 2. [download](https://ravendb.net/download) and install locally for your OS or Docker. 2. Create a new database on the _RavenDB_ server ([see the docs](https://ravendb.net/docs/article-page/latest/csharp/studio/server/databases/create-new-database/general-flow)). 3. Import test data from `/documentation/exported_data.ravendbdump` file ([see the docs](https://ravendb.net/docs/article-page/latest/csharp/studio/database/tasks/import-data/import-data-file)) - 4. Set the address to the _RavenDB_ server and the DB name in `./back-end/WebApi/appsettings.Development.json`. + 4. Set the DbName and put your database server url in the RavenDbUrls array in `./back-end/WebApi/appsettings.Development.json`. 2. Launch the solution (the `WebAPI` project). 3. Open `https://localhost:5001/swagger` in the browser. diff --git a/back-end/WebApi/appsettings.Development.json b/back-end/WebApi/appsettings.Development.json index 1fddcd2..24b9c75 100644 --- a/back-end/WebApi/appsettings.Development.json +++ b/back-end/WebApi/appsettings.Development.json @@ -1,5 +1,6 @@ { "Database": { + "RavenDbUrls": [ "https://xxx.ravendb.cloud" ], "UpdateIndexes": true, "DbName": "Yabt2" }, diff --git a/front-end/README.md b/front-end/README.md index f7fe391..48ba277 100644 --- a/front-end/README.md +++ b/front-end/README.md @@ -8,7 +8,7 @@ To run it locally, you need: 1. Install the latest LTS versions of [Node.js](https://nodejs.org). -2. Open `front-end` folder and initialize the project by running `npm i` command. +2. Open `front-end` folder and initialize the project by running `npm i --legacy-peer-deps` command. 3. Build and run by `npm start`. It will run the Angular app in a dev mode pointing to the back-end at `https://localhost:5001`.