/weather-app

Weather app to attend code challenge for Tamanna

Primary LanguageTypeScriptMIT LicenseMIT

Vercel

Weather app code challenge for Tamanna

App to look up weather based on geolocation and through the Open Weather API endpoints. Visit app on vercel.

Run the project

Required

  • Nodejs v14.17.6 - I do recommend NVM to install and manage node js versions.

Install dependencies

After has the right node version, you need to run:

npm install
#or
yarn

Getting Started

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 the NEXT_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.

Test the project

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.

Learn more about depencies on the project

NextJS

This is a Next.js project bootstrapped with create-next-app.

To learn more about Next.js, take a look at the following resources:

Redux ToolKit