Empty Express server used as a starting point for demos
- add a
.env
file next toindex.js
to configure environment variables. To configure the port to use when running on localhost add the following constant to the.env
file:
PORT=3300
To have the server automatically restart on changes to the code, run it using npm run server
or yarn server
.
Typing npm start
or yarn start
runs the server, but will not automatically restart it when files change.