Skip to content

pedromonad/api-mongo-docker

Repository files navigation

Dockerized Node API

Coverage Status

An example of a dockerized node API built with hapijs, mongodb and mongoose.

Installation

$ npm install

Development

Watch *.js files and restart the server.

$ node start

Examples

Sample user request:

$ curl -H "Content-Type: application/json" -X POST -d '{"name": "Peter Tosh", "password": "admin", "email": "peter@tosh.com"}' http://localhost:9001/user

Tests

$ npm test

Coverage

$ npm run coverage

Lint

Run ESLint

$ npm run lint

Docker

Install Docker and Compose

Start docker and run:

$ docker-compose up

About

Dockerized Node API with MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published