This repository contains the code for a CryptoInsights server, which provides cryptocurrency news and prices through an API.
- Cryptocurrency News: Access the latest cryptocurrency news articles.
- Cryptocurrency Prices: Get real-time prices for various cryptocurrencies.
-
Clone this repository to your local machine.
-
Install dependencies using npm:
npm install
-
Start the server:
npm start
-
Access cryptocurrency news:
GET /news
-
Access cryptocurrency prices:
GET /prices
- 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.
-
/news
: Get cryptocurrency news articles. -
/prices
: Get real-time cryptocurrency prices.
The server runs on port 3000 by default. You can change the port by setting the PORT
environment variable.
Contributions are welcome! Please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.