File tree 2 files changed +13
-4
lines changed
2 files changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -15,22 +15,29 @@ just add your mongodb url in the config.js file.
15
15
npm install
16
16
```
17
17
18
- * Run the following command in the project directory to run the server in development mode
18
+ * Run the following command in the project directory to run the server in development mode in linux
19
19
``` bashu online thodi der mein
20
20
21
21
npm run dev
22
22
```
23
23
24
- * To generate the Swagger API Docs, run
24
+ * To generate the Swagger API Docs in linux , run
25
25
``` bash
26
26
npm run dev_gen
27
27
```
28
28
29
- # To run using docker-compose:
29
+ * To run the above commands in windows, type:
30
+ ``` bash
31
+ npm run dev_win
32
+ npm run dev_win_gen
33
+ ```
34
+
35
+ ## To run using docker-compose:
30
36
* Install Docker and then run:
31
37
``` bash
32
38
docker-compose up
33
39
```
40
+ you will need to write mongo container if your are not using MLAB.
34
41
35
42
# Features to be added in the near future:
36
43
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"dev_gen" : " NODE_ENV='dev' GEN_DOC='true' nodemon --ignore '*.json' app.js" ,
8
8
"dev" : " NODE_ENV='dev' GEN_DOC='false' nodemon --ignore '*.json' app.js" ,
9
+ "dev_win" : " SET NODE_ENV=dev && SET GEN_DOC=false && nodemon --ignore '*.json' app.js" ,
10
+ "dev_win_gen" : " SET NODE_ENV=dev && SET GEN_DOC=true && nodemon --ignore '*.json' app.js" ,
9
11
"prod" : " NODE_ENV='prod' pm2 start app.js --name backend"
10
12
},
11
13
"author" : " war-turtle" ,
36
38
"winston" : " ^3.0.0" ,
37
39
"winston-daily-rotate-file" : " ^3.3.0"
38
40
}
39
- }
41
+ }
You can’t perform that action at this time.
0 commit comments