A Weather forecast app built using React + Nextjs + Tailwind
The application obtains latitude and longitude via the browser and makes requests via API to obtain the temperature of the current location.
For cost reasons, only the current temperature functionality is being obtained via api, since the other functionalities require a payment plan.
- fastify
- prisma
- zod
- vitest
Before you begin, ensure you have met the following requirements:
Follow these steps to install the project:
- Clone the project
git clone https://github.com/samirelhassann/climate-forecast.git
- Navigate into the project directory:
cd climate-forecast
- Install the project dependencies:
yarn install
Before running the project, you need to set up your environment:
-
Create a account on Open Weather and generate an api key following this steps: https://openweathermap.org/appid
-
Copy the .env.example file to .env:
cp .env.example .env
- Paste the api key generated on Open Weather
- Start the application
yarn dev
The application will run on route http://localhost:3000/
.