Another API boilerplate, based on express and rethinkdb backend.
Includes:
- Async/Promise methods into express (avoid
next()
callback hell) - Service generator with support for hooks and custom methods (see todo example)
- Model generator (see todo example)
- JWT-based Auth Service
- Docker build image
- User Service
Uses:
- Express
- RethinkDB
- Babel latest preset (ES6, ES2015, ES2016, ES2017) + stage-0
- cusspvz/node.docker
- Node.JS
- Yarn / NPM
- RethinkDB service
git clone https://github.com/cusspvz/rethinkdb-express-api-boilerplate my-api
cd my-api
yarn install # or: npm install
yarn run dev # or: npm run dev
Just place a new copy of the boilerplate/
folder on your project
And, of course, adjust dependencies on your package.json
.
npm run build
docker run build -t your-username/my-webapp .
docker push your-username/my-webapp