Skip to content

Latest commit

 

History

History
53 lines (31 loc) · 1.2 KB

README.md

File metadata and controls

53 lines (31 loc) · 1.2 KB

ph-st-template

Node Express Gulp

Run

  • npm run build-css to build css from sass
  • npm start
  • go to localhost:3000
  • npm run build to run webpack in prod mode
  • npm run dev to run webpack in dev mode
Gulp Commands
  • gulp main-js
  • gulp css
  • gulp jade
  • gulp compress-img

Local server is created using Express.js and HTTP server

Strucure

bin --> www (local HTTP server setup)

build --> . (static version of website)

controllers --> error.js (error handlers)

routes --> . (routes to index and error)

src --> css --> . (scss files)

src --> public --> . (static public files: img, js, compiled css)

src --> templates --> . (jade templates)