resher0012-2

2.3.1 • Public • Published

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

  1. Clone this repository to your local machine.

  2. Install dependencies using npm:

    npm install
    

Usage

  1. Start the server:

    npm start
    
  2. Access cryptocurrency news:

    GET /news
    
  3. 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.

Package Sidebar

Install

npm i resher0012-2

Weekly Downloads

9

Version

2.3.1

License

Apache-2.0

Unpacked Size

4.31 kB

Total Files

3

Last publish

Collaborators

  • retwelve