weather-app

Tech

Weather App made with React, Typescript, SCSS and Express (backend).
Preview: weather-app

Example

Installation

  1. Clone and install all the dependencies (frontend / backend)
git clone https://github.com/lorenzo774/weather-app.git
cd weather-app/server
npm i
cd ../client
npm i
  1. Create a new account for weatherbit.io and get the API Key

  2. Create a .env file inside server

ENDPOINT="https://api.weatherbit.io/v2.0/current"
API_KEY=[YOUR_KEY]
PORT=3000
ORIGIN='http://localhost:5173'
  1. Create a .env file inside client
VITE_API_ENDPOINT='http://localhost:3000/weather'
  1. Run the server and the client