NeoPulse is a multifunctional API that provides weather updates, the latest news, reminders, and coding assistance. This all-in-one API helps users stay informed, organized, and productive.
- Weather: Get real-time weather updates for any location.
- News: Fetch the latest news headlines from various sources.
- Reminder: Set and manage reminders with scheduled notifications.
- Coding Help: Get coding-related assistance and solutions.
Clone this repository and install the dependencies:
git clone https://github.com/ranidam/NeoPulse.git
cd NeoPulse
npm install
Create a .env file in the root directory and add the following variables:
CURRENTS_API_KEY=your_news_api_key_here
WEATHER_API_KEY=your_weather_api_key_here
Get Weather_API_KEY : https://www.weatherapi.com Get Current_API_KEY: https://currentsapi.services/en
Run the API using:
node src/index.js
GET /weather?city={cityName}
Response:
{
"city": "New York",
"temperature": "15°C",
"description": "Cloudy"
}
GET /news?category={categoryName}
Response:
{
"category": "technology",
"headlines": ["Tech breakthrough in AI", "New smartphone released"]
}
POST /reminder
Request Body:
{
"reminder": "Meeting at 5 PM",
"time": "2025-03-07 17:00"
}
Response:
{
"message": "Reminder set for 2025-03-07 17:00"
}
GET /codinghelp?query={question}
Response:
{
"query": "How to reverse a string in JavaScript?",
"answer": "You can use str.split('').reverse().join('');"
}
Run tests using:
npm test
Contributions are welcome! Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.
Developed by Rani Dam.