Skip to content

This is a simple NodeJs API with Express and some MySql connection

Notifications You must be signed in to change notification settings

samwx/simple-nodejs-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

This is a simple NodeJs API with Express and some MySql connection

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published