This repository consists webapp skeleton which can be used as a boilerplate for Express4-based web applications.
At the moment, it supports cookies, sessions (via MySQL, disabled by default), serving static files and nunjucks templating engine (uses Jinja2 syntax). And all this staff made with completely new Express4 paradigm.
It also uses "app" expression rather than "route" because I suppose it more convinient. Nevertheless apps is the express' Routers itself.
-
Clone master branch of the repository
$ git clone https://github.com/sitnin/skeleton.git newapp
-
Next, cleanup
.git
directory (you definitely don't need it)$ cd newapp $ rm -rf .git
-
Install required node modules
$ npm install
-
Copy
config-sample.json
toconfig.json
and edit (this is required)$ cp config-sample.json config.json
-
Run webapp
$ npm start
-
Enjoy =)
Feel free to create pull-requests and so on
MIT