Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/a-samod/weather-api-backend
https://github.com/a-samod/weather-api-backend
Last synced: 9 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/a-samod/weather-api-backend
- Owner: A-Samod
- Created: 2024-03-22T08:44:55.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-04-24T14:25:55.000Z (7 months ago)
- Last Synced: 2024-04-24T17:40:16.755Z (7 months ago)
- Language: JavaScript
- Size: 399 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# weather-api-backend
# Student ID : COBSCCOMP4Y222P-011
# WEATHER MAP BACKEND
This project is a backend API built with Node.js that provides weather data for a frontend application. The frontend application is a React-based map displaying weather data for 24 districts in Sri Lanka. The weather data includes temperature, humidity, air pressure, and the latest updated date. The frontend and backend are synced to ensure real-time data updates.
## DEMO
You can find a live demo of the application [here](https://avishka.tech/).
## FEATURES
- Provides APIs to fetch weather data for 24 districts in Sri Lanka.
- Supports filtering weather data by district.
- Provides APIs for fetching maximum and minimum temperature data.
- Supports fetching weather data history.
- Utilizes Swagger for API documentation.1. Swagger :
![Swagger](./README/swagger.png)
![Get Swagger](./README/get_swagger.png)
## Installation
1. Clone the repository:
```
git clone https://github.com/A-Samod/weather-api-backend
```2. Navigate to the project directory:
```
cd weather-api-backend
```3. Install dependencies:
```
npm install
```4. Start the server:
```
npm start
```
5. Open http://localhost:4000 to view it in the browser.## Frontend Repository
The backend repository for this project can be found [here](https://github.com/A-Samod/weather-api-frontend).