I found myself doing roughly the same thing each time I start an express project, so I made this so I can just clone the repo to a new folder, remove the .git folder edit the package.json and start from there
$ git clone https://github.com/arnorhs/express-project-template my-new-project
$ cd my-new-project
$ rm -rf .git
$ npm install
$ npm init
- express using stylus & jade
- all the express config wrapped in
./lib/express.js
- browserify middleware compiling from
./client/main.js
- cf environment specific config accessed by doing
require('./config')
- express-route-controller using the
./config/routes.json
for routes => controllers/*
Feel free to use it as well, even though I'm creating this just for myself.
I might make it more easily reusable one day with a global bin command such as:
$ express-project-template init my-new-project
But probably not unless I find myself doing this way more often than I think
MIT license