This is the API used in the Weather Recipes project and was developed for Biz Capital's selection process.
NodeJs
Express
Jest
Supertest
Eslint
You must have installed node and npm.
First run npm i
to install all dependencies.
Then create a .env.development file following as an example the .env.example file, setting the environment variables accordingly. with data from your database.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:PORT to view it in the browser.
The project will rebuild if you make edits.
You will also see any lint errors in the console.
Launches the test runner in the sequencial mode.
Launches the test runner in the interactive watch mode.
Returns a list of cities that match the searched name.
Returns a list of weather information for the searched location.
Returns a random recipe based on the weather of the location you search and the weather information.
This api is deployed on Heroku, you can visit it by accessing the url https://weather-recipes.herokuapp.com/.