Skip to content

samirelhassann/climate-forecast

Repository files navigation

Climate Forecast

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.

Demo

demo-climate-forecast

Language and Tools

nextjs react tailwind typescript

Additional Libraries

  • fastify
  • prisma
  • zod
  • vitest

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js >= 18.x
  • yarn - The version used in this project was 1.22.21

Instalation

Follow these steps to install the project:

  1. Clone the project
git clone https://github.com/samirelhassann/climate-forecast.git
  1. Navigate into the project directory:
cd climate-forecast
  1. Install the project dependencies:
yarn install

Configuration

Before running the project, you need to set up your environment:

  1. Create a account on Open Weather and generate an api key following this steps: https://openweathermap.org/appid

  2. Copy the .env.example file to .env:

cp .env.example .env
  1. Paste the api key generated on Open Weather

Usage

  1. Start the application
yarn dev

The application will run on route http://localhost:3000/.

Releases

No releases published

Packages

No packages published