Skip to content

Latest commit

 

History

History
90 lines (60 loc) · 2.13 KB

README.md

File metadata and controls

90 lines (60 loc) · 2.13 KB

Fun Recipes API

This API is the implementation of the delivery-much test.

Prerequisites

⚠️ Required ⚠️

Docker and docker-compose

$ docker -v
Docker version 19.03.8, build afacb8b7f0

$ docker-compose -v
docker-compose version 1.25.4, build 8d51620a

🚀 Getting started 🚀

Setup and run :woman_running:

Clone the repository and enter the repository directory

$ git clone [email protected]:rafaelcascalho/fun-recipes-api.git

$ cd fun-recipes-api/

You must copy the .env.example into a new file called .env.development and place the required information. Once thats done, your .env.development file should look like this:

NODE_ENV=development
PORT=3000
HOST=localhost

GIPHY_API_KEY=your_giphy_api_key_here

After that's done, you can just check if your development environment is running using the command

$ ./run.sh

or 

$ sh run.sh

That's it! You're all set. :clinking_beer_mugs:

To consume the API

I've added an api base url to the requests. So, the requests must match


🧪 Running the tests 🧪

To run the tests just use the command

$ npm test

To check the coverage files use the command

$ npm run cov:serve

Built With