项目作者: rimiti

项目描述 :
Dockerized REST API example which uses Mongo, Aclify, Express, Pagination, JWT, Celebrate...
高级语言: JavaScript
项目地址: git://github.com/rimiti/mongo-rest-api.git
创建时间: 2019-02-20T12:42:26Z
项目社区:https://github.com/rimiti/mongo-rest-api

开源协议:

下载


mongo-rest-api

Build Status codecov

Description

Simple Dockerized API which uses Mongo, Aclify, Express, Pagination, JWT, Celebrate…

Pre-requirements

  • Docker
  • Docker Compose

How to use it?

Tests

All tests are dockerized.

  1. $ yarn docker:run:test

Development environment

Development environment is dockerized too.

  1. $ yarn docker:run:development

Accessing

  1. http://127.0.0.1:3000

Scripts

Run using yarn <script> command.

  1. lint - Eslint + prettier check.
  2. lint:fix - Eslint + prettier auto fixing.
  3. test - Run tests with coverage.
  4. build - Compile source files.
  5. build:watch - Interactive watch mode, compile sources on change.
  6. docker:wait - Wait until stack will be ready.
  7. docker:run:development - Runs development environment.
  8. docker:run:test - Runs tests.
  9. docker:init:development - Initialize development environment.
  10. docker:init:test - Initialize test environment.