- Server: NodeJS
- Router: Express
- Templating: EJS
- CSS Compiler and minifier: (SCSS) Node SASS Middleware
- Bundling client side: Browserify
- JS minifier & compiler client side: Babel
- Task manager: NPM scripts
- Server auto reload: Nodemon
- client auto reload: Reload
-
Run
$ git clone https://github.com/fennadew/boilerplate-nodejs.git
in your terminal in the desired directory. -
cd
to the repository -
Run
npm install
to install all dependencies. -
Run
npm run serve
to start the server. App listens onhttp://localhost:3000/
. -
For deployment, remove the reload script tag before
</body>
in footer.ejs andreload(app)
in app.js. Runnpm start
to start the server.
- Use semicolons
- Write in ES6
- Use const if possible, let when needed.
- Add image compressor
- Add gzip
MIT © Fenna de Wilde