https://github.com/robertoachar/docker-express-mongodb
:whale: A playground for Docker with Express and MongoDB.
https://github.com/robertoachar/docker-express-mongodb
docker docker-compose express live-reload mongodb node nodemon rest-api
Last synced: over 1 year ago
JSON representation
:whale: A playground for Docker with Express and MongoDB.
- Host: GitHub
- URL: https://github.com/robertoachar/docker-express-mongodb
- Owner: robertoachar
- License: mit
- Created: 2017-10-28T16:13:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-20T17:54:30.000Z (about 8 years ago)
- Last Synced: 2025-03-18T15:21:35.495Z (over 1 year ago)
- Topics: docker, docker-compose, express, live-reload, mongodb, node, nodemon, rest-api
- Language: JavaScript
- Homepage:
- Size: 44.9 KB
- Stars: 15
- Watchers: 1
- Forks: 18
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# docker-express-mongodb
Generated by [OSS Project Generator](http://bit.ly/generator-oss-project).
[![License][license-badge]][license-url]
> A playground for Docker with Express and MongoDB.
# Development
* Cloning the repo
```bash
$ git clone https://github.com/robertoachar/docker-express-mongodb.git
```
* Installing dependencies
```bash
$ npm install
```
* Running scripts
| Action | Usage |
| ------------------------- | -------------- |
| Starting development mode | `npm start` |
| Linting code | `npm run lint` |
# Docker
* Building an image
```bash
$ docker-compose build
```
* Running a container
```bash
$ docker-compose up
```
* Stopping a container
```bash
$ docker-compose down
```
# Rest API
### User Service
| Method | Endpoint | Description |
| ------ | -------------- | ------------------------- |
| GET | /api/users | Retrieves a list of users |
| POST | /api/users | Retrieves a specific user |
| GET | /api/users/:id | Creates a new user |
| PUT | /api/users/:id | Updates user |
| DELETE | /api/users/:id | Deletes user |
# Postman
* postman/docker-express-mongo.postman.json
# Author
[Roberto Achar](https://twitter.com/robertoachar)
# License
[MIT](https://github.com/robertoachar/docker-express-mongodb/blob/master/LICENSE)
[license-badge]: https://img.shields.io/github/license/robertoachar/docker-express-mongodb.svg
[license-url]: https://opensource.org/licenses/MIT