Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 532 Bytes

readme.md

File metadata and controls

27 lines (21 loc) · 532 Bytes

Express Template

This is my go to express template for nodeJS projects. You may not find this useful, however, I do!

Installation

  1. Install packages:
npm i --save
  1. Configure template html/ejs (optional)
app.engine('html', require('ejs').renderFile); //remove if using ejs templating
app.set('view engine', 'html'); //set to ejs if using ejs templating
  1. Run
npm start

What's included

  • Basic Routing
  • API Routing
  • Helmet ( Security Headers )
  • Cloud port handling with fallback