Skip to content

cusspvz/rethinkdb-express-api-boilerplate

Repository files navigation

rethink-express-api-boilerplate

Another API boilerplate, based on express and rethinkdb backend.

my api would stay up

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

Requirements

  • Node.JS
  • Yarn / NPM
  • RethinkDB service

Instalation

git clone https://github.com/cusspvz/rethinkdb-express-api-boilerplate my-api
cd my-api
yarn install # or: npm install

Development

yarn run dev # or: npm run dev

Updating

Just place a new copy of the boilerplate/ folder on your project

for real?

And, of course, adjust dependencies on your package.json.

Building

npm run build

Docker image

Building

docker run build -t your-username/my-webapp .

Publishing

docker push your-username/my-webapp