Skip to content

Commit 63b3805

Browse files
committed
Add instructions to seed qns
1 parent 68941fb commit 63b3805

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
[![Review Assignment Due Date](https://classroom.github.com/assets/deadline-readme-button-22041afd0340ce965d47ae6ef1cefeee28c7c493a6346c4f15d667ab976d596c.svg)](https://classroom.github.com/a/bzPrOe11)
2-
3-
# CS3219 Project (PeerPrep) - AY2425S1
4-
5-
## Group: G28
1+
# CS3219 Project (PeerPrep) - AY2425S1 Group 28
62

73
## Setting up
84

backend/question-service/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@
4848

4949
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.
5050

51+
## Seeding questions into MongoDB
52+
53+
1. With Docker
54+
55+
- Run `docker ps` to get a list of the Docker containers on your machine.
56+
57+
- Retrieve the `CONTAINER_ID` of `peerprep/question-service`.
58+
59+
- Run `docker exec -it <CONTAINER_ID> npm run seed`.
60+
61+
2. Without Docker
62+
63+
- Run `npm run seed`.
64+
5165
## After running
5266

5367
1. To view Question Service documentation, go to http://localhost:3000/docs.

0 commit comments

Comments
 (0)