Skip to content

lorenzo774/weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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