Express API for Castle project
This tool allow accessing firebase database hotels in order to use it in the client interface.
Express for API management.
Firebase for database management.
This project is a micro-service of Castle project including castle-client and castle-cron-job.
First, build the Dockerfile:
$ docker build -t castle-api .
Now run this image previously built:
$ docker run --rm -p 4000:4000 castle-api
Returns the hotels of the destination specified in the parameter. Ex: http://localhost:4000/hotel/france
Returns the hotel of the destination / id specified in the parameters. Ex: http://localhost:4000/hotel/france/ed1834392