This is a simple weather website built using NestJS and Tailwind CSS. It uses the OpenWeatherMap API to fetch the weather information of different cities.
Before running this project, you need to have the following software installed on your machine:
- Node.js (v14 or higher)
- npm or yarn
Follow the below steps to install and run this project on your local machine:
-
Clone the repository:
git clone https://github.com/sakshgupta/weather-app.git
-
Install the dependencies:
npm install
-
Create a
.env
file and add your OpenWeatherMap API key or use mine from the.env.example
:NEXT_PUBLIC_OPEN_WEATHER_API_KEY =
-
Start the development server:
npm run dev
-
Open your browser and visit
http://localhost:3000
to see the weather website.
Enter the name of a city in the search bar to view the current weather of that city or use your current location. The website also displays a three-day forecast of the selected city.
- NestJS (Node.js framework)
- Tailwind CSS
- OpenWeatherMap API
- Luxon
- React Toastify
This project is deployed on Vercel. You can view the deployed version of the application by visiting https://weather-app-sakshgupta.vercel.app.