This project is a Weather application that provides various API endpoints for access the weather data from location.
Go and Check it Out Deployed-link.
You can see the Video-Demostration also.
To install and run this project locally, follow these steps:
- Clone the repository:
git clone https://github.com/sitansu04/Alphabin-weather-app.git
- Navigate to the project directory:
cd <project-directory>
- Install dependencies:
npm install
- Start the server:
npm start
- The application will be accessible at
http://localhost:8000
Take 3 environment variables
- API_KEY (get the key from weatherbit.io)
- PORT
- mongo_url (Mongo db Url)
Endpoint | Method | Description |
---|---|---|
/ |
GET | Start server response |
/current?city=cityname |
GET | Get current weather of the city |
/forecast?city=cityname |
GET | Get current 5 days weather of the city |
/user/register |
POST | User can Signup |
/user/login |
POST | User can Login |
/save |
POST | User can save their location preference |
/delete |
DELETE | User can delete their location preference |
/savedCity |
GET | User can see all saved cities |