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

https://github.com/yagoluiz/delivery-api

Beverage delivery API using MongoDB and NodeJS
https://github.com/yagoluiz/delivery-api

docker docker-compose geolocation mongodb nodejs

Last synced: 7 months ago
JSON representation

Beverage delivery API using MongoDB and NodeJS

Awesome Lists containing this project

README

          

# Delivery API

![](https://github.com/yagoluiz/delivery-api/workflows/Docker%20Image%20CI/badge.svg)

Beverage delivery API, responsible for reporting or nearest point of delivery via geolocation.

## Data information

Data is stored in **MongoDB** database using geolocation.

If desired, the collection for initial data is present in the **database folder**, **partners.json** file.

In the same folder, the **geojson.json** file presents the geolocation of collection partners for viewing on [geojson.io](http://geojson.io/) site.

## Instructions for run project

### npm

For run project and integration testing the database must be run.

- Run application:

`npm start`

or

`npm run dev` (nodemon)

- Test application:

`npm test`

### Container

- Docker Compose:

`docker-compose up -d`

### Endpoints

The **endpoints.http** file has the API endpoints.

In VS Code, install [REST Client](https://marketplace.visualstudio.com/items?itemName=humao.rest-client) extension to run the tests.

Otherwise, execute the endpoints on the desired tool.