|
22 | 22 |
|
23 | 23 | 5. In the `user-service` directory, create a copy of the `.env.sample` file and name it `.env`.
|
24 | 24 |
|
25 |
| -6. Update the `DB_CLOUD_URI` of the `.env` file, and paste the string we copied earlier in step 4. |
| 25 | +6. Update the `DB_CLOUD_URI` of the `.env` file, and paste the string we copied earlier in step 4. |
26 | 26 |
|
27 | 27 | ## Running User Service
|
28 | 28 |
|
29 |
| -1. Open Command Line/Terminal and navigate into the `user-service` directory. |
| 29 | +1. Follow the instructions [here](https://nodejs.org/en/download/package-manager) to set up Node v20. |
30 | 30 |
|
31 |
| -2. Run the command: `npm install`. This will install all the necessary dependencies. |
| 31 | +2. Open Command Line/Terminal and navigate into the `user-service` directory. |
32 | 32 |
|
33 |
| -3. If you are running the user service for the first time, run `npm run seed`, to seed the database with a default admin account. If you wish to change the default, please update the `.env` file. Alternatively, you can also edit your credentials and user profile after you have created the default account. |
| 33 | +3. Run the command: `npm install`. This will install all the necessary dependencies. |
34 | 34 |
|
35 |
| -4. Run the command `npm start` to start the User Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes. |
| 35 | +4. If you are running the user service for the first time, run `npm run seed`, to seed the database with a default admin account. If you wish to change the default, please update the `.env` file. Alternatively, you can also edit your credentials and user profile after you have created the default account. |
36 | 36 |
|
37 |
| -5. To view User Service documentation, go to http://localhost:3001/docs. |
| 37 | +5. Run the command `npm start` to start the User Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes. |
38 | 38 |
|
39 |
| -6. Using applications like Postman, you can interact with the User Service on port 3001. If you wish to change this, please update the `.env` file. |
| 39 | +6. To view User Service documentation, go to http://localhost:3001/docs. |
| 40 | + |
| 41 | +7. Using applications like Postman, you can interact with the User Service on port 3001. If you wish to change this, please update the `.env` file. |
0 commit comments