Skip to content

Commit 8b69b75

Browse files
authored
Merge pull request #32 from nicolelim02/chore/docs
Update readme
2 parents 3f9c7cc + 6097796 commit 8b69b75

File tree

2 files changed

+16
-12
lines changed

2 files changed

+16
-12
lines changed

backend/question-service/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,14 @@
5858

5959
## Running Question Service
6060

61-
1. Open Command Line/Terminal and navigate into the `question-service` directory.
61+
1. Follow the instructions [here](https://nodejs.org/en/download/package-manager) to set up Node v20.
6262

63-
2. Run the command: `npm install`. This will install all the necessary dependencies.
63+
2. Open Command Line/Terminal and navigate into the `question-service` directory.
6464

65-
3. Run the command `npm start` to start the Question Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
65+
3. Run the command: `npm install`. This will install all the necessary dependencies.
6666

67-
4. To view Question Service documentation, go to http://localhost:3000/docs.
67+
4. Run the command `npm start` to start the Question Service in production mode, or use `npm run dev` for development mode, which includes features like automatic server restart when you make code changes.
6868

69-
5. Using applications like Postman, you can interact with the Question Service on port 3000. If you wish to change this, please update the `.env` file.
69+
5. To view Question Service documentation, go to http://localhost:3000/docs.
70+
71+
6. Using applications like Postman, you can interact with the Question Service on port 3000. If you wish to change this, please update the `.env` file.

backend/user-service/README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,20 @@
2222

2323
5. In the `user-service` directory, create a copy of the `.env.sample` file and name it `.env`.
2424

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.
2626

2727
## Running User Service
2828

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.
3030

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.
3232

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.
3434

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.
3636

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.
3838

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

Comments
 (0)