/express-es6-sample

node, expressjs app that allows use of es6. made with an article

Primary LanguageJavaScript

Express with ES6

An skeleton express app that allows you to use ES6 syntax. Generated by express-generator cli.

How to run

Before anything else, you must have node installed on your machine.

Running Dev Server

Run on your terminal npm run watch:dev, the server will restart everytime you make a change in your code.

Running Production Server

For stuff like heroku deployment, aws elasticbeanstalk, run npm run start

Other scripts

  • transpile - convert es6 and beyond code to es5 to a folder named dist-server
  • clean - delete transpiled folder
  • build - clean and transpile