Skip to content

Commit 5ff9c1f

Browse files
committedDec 19, 2018
script to run server on windows added
1 parent c5b14d2 commit 5ff9c1f

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed
 

‎README.md

+10-3
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,29 @@ just add your mongodb url in the config.js file.
1515
npm install
1616
```
1717

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
1919
```bashu online thodi der mein
2020
2121
npm run dev
2222
```
2323

24-
* To generate the Swagger API Docs, run
24+
* To generate the Swagger API Docs in linux , run
2525
```bash
2626
npm run dev_gen
2727
```
2828

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:
3036
* Install Docker and then run:
3137
```bash
3238
docker-compose up
3339
```
40+
you will need to write mongo container if your are not using MLAB.
3441

3542
# Features to be added in the near future:
3643

‎package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
"scripts": {
77
"dev_gen": "NODE_ENV='dev' GEN_DOC='true' nodemon --ignore '*.json' app.js",
88
"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",
911
"prod": "NODE_ENV='prod' pm2 start app.js --name backend"
1012
},
1113
"author": "war-turtle",
@@ -36,4 +38,4 @@
3638
"winston": "^3.0.0",
3739
"winston-daily-rotate-file": "^3.3.0"
3840
}
39-
}
41+
}

0 commit comments

Comments
 (0)
Please sign in to comment.