/hotels-api

Hotels API was developed for a technical test years ago, the requirements was quite simple, only filtered search, validation and schema creation. I prefer a DDD, but this approuch is good enough for a CRUD.

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Hotel API

Hotel Offers Backend

Node.js, Express.js, MongoDB, Mongo Express, Docker e Swagger

Install

git clone https://github.com/dionmaicon/hotels-api.git

Requirements:

  • docker-compose

After clone this repository, copy the .env.development to .env and run:

docker-compose up

Seed

To seed database run up. (Seeders).

docker exec -it hotel-offers_api_1 npm run migrate:up

To delete run down

docker exec -it hotel-offers_api_1 npm run migrate:down

Use

Backend server Node.js.

All the services are open. No authentication is required.

Mongo Express Running: http://localhost:8050 Express Running: http://localhost:3000/v1/hotel-offers Swagger UI: http://localhost:3000/doc