meesrutten / hackathon-master-digital-design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Boilerplate NodeJS

  • 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

Get started

  • 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 on http://localhost:3000/.

  • For deployment, remove the reload script tag before </body> in footer.ejs and reload(app) in app.js. Run npm start to start the server.

Best practice

  • Use semicolons
  • Write in ES6
  • Use const if possible, let when needed.

To do

  • Add image compressor
  • Add gzip

License

MIT © Fenna de Wilde

Resources

About

License:MIT License


Languages

Language:JavaScript 84.8%Language:CSS 9.9%Language:HTML 5.3%