Cryptonite is a web application designed to track live cryptocurrency prices and view historical data. It leverages the CoinGecko API to provide up-to-date and historical information on various cryptocurrencies.
- Live Cryptocurrency Tracking: Monitor real-time price updates for a wide range of cryptocurrencies. Every 30 sec the data will be updated to avoid rate limiting.
- Public Companies Holding: View public companies holding cryptocurrencies.
- Historical Data: Access historical price data for selected cryptocurrencies over specified time ranges.
- Search Functionality: Quickly find cryptocurrencies and view their current and historical data.
- Search Bar: Search for cryptocurrencies with suggestions and recent searches.
- Drag-and-Drop Watchlist: Add cryptocurrencies to a watchlist using a drag-and-drop interface.
- Server Side Rendering: Utilizes Next.js server components for improved performance and server-side rendering.
- Dark Mode: Toggle between light and dark themes for better readability.
The application uses the following CoinGecko API endpoints:
-
Get Coin Data:
- Endpoint:
https://api.coingecko.com/api/v3/coins/{id} - Description: Fetches detailed information about a specific cryptocurrency.
- Endpoint:
-
Search for Coins:
- Endpoint:
https://api.coingecko.com/api/v3/search - Description: Provides search functionality to find cryptocurrencies based on user queries.
- Endpoint:
-
Market Chart Data:
- Endpoint:
https://api.coingecko.com/api/v3/coins/{id}/market_chart/range - Description: Obtains market chart data for a cryptocurrency over a specified date range.
- Endpoint:
To get started with Cryptonite, clone the repository and install the necessary dependencies:
- Clone the repository:
git clone https://github.com/thekavikumar/Cryptonite.git- Install the dependencies:
cd Cryptonite
npm installStart the development server:
npm run devOpen your browser and navigate to http://localhost:3000 to access the application.
Cryptonite is dockerized for easier deployment and development. Follow these instructions to run the application using Docker:
- Make sure Docker is installed on your machine. You can download Docker from here.
-
Build the Docker Image
Navigate to the root directory of the Cryptonite project and build the Docker image using the following command:
docker build -t cryptonite . -
Run the Docker Container
After building the image, you can run the application in a Docker container with the following command:
docker run -p 3000:3000 cryptonite
This maps port 3000 of the container to port 3000 on your host machine.
-
Access the Application
Open your browser and navigate to
http://localhost:3000to access the Cryptonite application.
If you prefer to use Docker Compose, you can use the provided docker-compose.yml file to simplify the process.
-
Start the Application
Run the following command in the root directory of the project:
docker-compose up
-
Access the Application
Open your browser and navigate to
http://localhost:3000to access the Cryptonite application.
The application is deployed on Vercel and can be accessed here.
%20-%20Dark.png)