- Go to your /server directory.
- create index.js ( Our server will run here. )
- You can install dependencies like express, body-parser, Mysql, nodemon
Setup a Nodemon.
- Add these 2 lines under the script tag
"start":"node index.js",
"devStart":"nodemon index.js",
- npm run devStart
Nodemon will refresh automatically when it receives any changes.
0 comments:
Post a Comment