Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 617 Bytes

README.md

File metadata and controls

36 lines (23 loc) · 617 Bytes

Setup

$ npm install

Running server (Development mode)

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!"}

Running server (Production mode)

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