This project was created with NextJS.
Make sure Node version 10+ (with npm included) is installed.
- Create
config.jsonfromconfig.template.json. - Change the value of apiKey*.
- Run
npm install. - Run
npm run dev. - Open browser and go to
http://localhost:3000.
*Api key must be retrieved from https://openweathermap.org
Tests can be run with npm or npx.
To run tests with npm run the command npm test.
It is possible to run it in watch mode or coverage mode by running the commands npm run test:watch or npm run test:coverage
To run tests with npx run the command npx jest
Read jest documentation for command arguments