Skip to content

pdroll/ES6-Node-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ES6 Node Server Boilerplate

Easily write your Express Node application in the ES2015 syntax. Ideal for writing API's.

Uses Babel to compile your code, so you have access to the full ES2015 spec (and then some) regardless of what version of Node.js your server is running.

Support for the object spread operator and class properties is included for your programming enjoyment.

Run Locally

npm start

Speeds up development by using Nodemon to restart the application when a file is changed.

Run in Production

Compile your ES2015 to ES5 by running:

npm run compile

Then you can run the compiled version by running:

node compiled_server.js

Run in Production with High Availability

If you want to ensure your application stays online, even if your script encounters an error, PM2 has your back.

Ensure PM2 is installed on your machine:

npm install pm2 -g

Then to compile your ES2015 code to straight ES5 code and serve the compiled version with PM2, you can run:

npm run startProd

About

Boilerplate Node.js server that enables you to write with the ECMAScript 2015 syntax.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors