App to look up weather based on geolocation and through the Open Weather API endpoints. Visit app on vercel.
- Nodejs v14.17.6 - I do recommend NVM to install and manage node js versions.
After has the right node version, you need to run:
npm install
#or
yarn
Before run the project, you need to:
- Create a account in Open weather map to get your API KEY.
- Rename the
sample.env.local
to.env.local
and update the keys to your variable values, mainly theNEXT_PUBLIC_WEATHER_API_KEY
. This will enable the communication with the openweathermap API.
To get the project running in you local development server, run:
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
To see tests results you can run:
npm run test
# or
yarn test
If you need to see the coverage:
npm run test:coverage
# or
yarn test:coverage
Commit Policy git-cz
I've using while build this project the command npx git-cz
and following the recipe. They suggest a good way to organize the project history.
This is a Next.js project bootstrapped with create-next-app
.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Next.js deployment documentation for more details.