$ npm install
Run the "app" with babel tranpilation at require runtime! You can change the JS files then nodemon will watch and automatically update the app.
$ npm run start
$ curl http://localhost:3000
{"msg":"Ta tranquilo, ta favoravel!"}
This will transpile the "app" into a ES5 on a dist folder
$ npm run build
$ npm run server
$ curl http://localhost:3000
{"msg":"Ta tranquilo, ta favoravel!"}
- Changing the default PORT
$ PORT=6666 npm run start
or
$ PORT=6666 npm run server