Skip to content

An express project template I use when starting new express projects

Notifications You must be signed in to change notification settings

arnorhs/express-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Express project template

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

What's bundled

  • 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

License

MIT license

About

An express project template I use when starting new express projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published