CryptoPrice
CryptoPrice is a Node.js application that provides various endpoints to fetch cryptocurrency price data and historical information. It utilizes Express.js and Axios to handle HTTP requests and interact with external APIs.
Installation
-
Clone the repository:
git clone https://github.com/your-username/cryptoprice.git
-
Install dependencies:
cd cryptoprice
npm install
Usage
-
Start the server:
npm start
-
Access the following endpoints:
/bitcoin
: Fetches the latest Bitcoin price./bitcoin/history
: Fetches Bitcoin price history data for the year 2023./bitcoin/charts
: Serves trend charts for Bitcoin prices.
Dependencies
- Express: Web framework for Node.js.
- Axios: Promise-based HTTP client for the browser and Node.js.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Author
Created by Your Name