resher0012-2
v2.3.1
Published
oInsights is your cryptocurrency news briefing center. From the latest developments in blockchain technology to market dynamics, we provide timely and accurate information to keep you c
Downloads
16
Maintainers
Readme
CryptoInsights Server
This repository contains the code for a CryptoInsights server, which provides cryptocurrency news and prices through an API.
Features
- Cryptocurrency News: Access the latest cryptocurrency news articles.
- Cryptocurrency Prices: Get real-time prices for various cryptocurrencies.
Installation
Clone this repository to your local machine.
Install dependencies using npm:
npm install
Usage
Start the server:
npm start
Access cryptocurrency news:
GET /news
Access cryptocurrency prices:
GET /prices
Dependencies
- Express: Fast, unopinionated, minimalist web framework for Node.js.
- Axios: Promise-based HTTP client for the browser and Node.js.
- Body-Parser: Node.js body parsing middleware.
- Helmet: Middleware to help secure Express apps by setting various HTTP headers.
- Morgan: HTTP request logger middleware for Node.js.
API Routes
/news
: Get cryptocurrency news articles./prices
: Get real-time cryptocurrency prices.
Configuration
The server runs on port 3000 by default. You can change the port by setting the PORT
environment variable.
Contributing
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
License
This project is licensed under the MIT License. See the LICENSE file for details.