Weather App
Get the weather of a city!
Installation
- Clone the repository
git clone git@github.com:DoctorPok42/WeatherApp.git
- Install dependencies
npm install
- Add .env file
touch .env
-
Add the following variables to the .env file
Get your api key https://www.weatherapi.com
WEATHER_API_KEY= # Your weather api key
- Run the project
npm run dev
Usage
-
Go to http://localhost:3000
-
Enter a city name in the search bar
-
The weather of the city is displayed!
Tech
Folder structure
- components - Contains all the components used in the project
- pages - Contains all the pages used in the project
- public - Contains all the static files used in the project
- styles - Contains all the styles used in the project
- api - Contains all the routes api used in the project