/expressjs-api-startup-files-sql

Starter files for a MVC REST api using Nodejs, ExpressJS, and SequelizerJS, with seperation of routes, and models.

Primary LanguageJavaScript

ExpressJS REST API MVC application Boilerplate

What?
it's a rails-inspired simple starter files and mvc structures for REST api applications using MVC design pattern,with http bearer authentication, login route, and authentication token generator,and Heroku deployment support.

Dependencies:

  • NodeJS
  • ExpressJS
  • SequelizerJS
  • Testing: MochaJS, Supertest, ShouldJS
  • Authentication: PassportJS, passport-http-bearer Strategy

Getting Started:

// clone the repo
git clone git@github.com:mahmoudsultan/expressjs-api-startup-files-sql.git

// clear .git and start over
rm -rf .git && git init

// edit package.json to change project info

// install dependencies
npm install

// run it
npm start

// test it - make sure that's running before testing
npm test

License

MIT