-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathTODO
22 lines (17 loc) · 911 Bytes
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Setup:
Download docker and docker-compose
Use terminal, cd to this directory and do this command: docker-compose up
Use terminal, cd to this directory and do this command: npm start
Note: the first time, you may need to do npm i before you do npm start
Download MongoDB Compass and open it
after docker-compose up works, you can use the MongoDB Compass to connect to the database,
check config.env to see the connection string
0-Go to browser and check the
1-Check routes/users to see how the users list api is working
2-
// on first start
// go to this directory
// docker-compose start // in order to start the container that holds the Mongodb
// npm start // in order to run the backend on the port 5000
// await ( fetch('http://localhost:5000/api/users/list', {method: 'get'})).then(res => res.json())
// await ( fetch('http://localhost:5000/api/users', {method: 'post'})).then(res => res.json())