Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rimiti/mongo-rest-api

Dockerized REST API example which uses Mongo, Aclify, Express, Pagination, JWT, Celebrate...
https://github.com/rimiti/mongo-rest-api

acl docker docker-compose express jest jwt mongodb mongoose supertest tests

Last synced: 24 days ago
JSON representation

Dockerized REST API example which uses Mongo, Aclify, Express, Pagination, JWT, Celebrate...

Awesome Lists containing this project

README

        

# mongo-rest-api

[![Build Status](https://travis-ci.org/rimiti/mongo-rest-api.svg?branch=master)](https://travis-ci.org/rimiti/mongo-rest-api) [![codecov](https://codecov.io/gh/rimiti/mongo-rest-api/branch/master/graph/badge.svg)](https://codecov.io/gh/rimiti/mongo-rest-api)

## 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.

```sh
$ yarn docker:run:test
```

### Development environment

Development environment is dockerized too.

```sh
$ yarn docker:run:development
```

### Accessing

```sh
http://127.0.0.1:3000
```

## Scripts

Run using yarn `` command.

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