Quickstart Guide
This guide will have you querying cryptocurrency prices in under 5 minutes using Docker Compose.Prerequisites
Before starting, ensure you have:- Docker and Docker Compose installed
- A CoinGecko API key (get one free here)
- Basic familiarity with REST APIs and curl/Postman
This quickstart uses Docker Compose to run PostgreSQL, Redis, and the CryptoPulse API as a single stack. No local Node.js installation required!
Step-by-Step Setup
Configure Environment
Copy the example environment file and update it with your settings:Edit
.env and set your CoinGecko API key:.env
Start the Services
Launch PostgreSQL, Redis, and the API with a single command:Wait for the health checks to pass. You should see:The API will be available at
http://localhost:3000Authenticate and Get a Token
Use the credentials from your Response:Copy the
.env file to login:accessToken value for the next step.Explore the Interactive Docs
Open http://localhost:3000/docs in your browser.Click the Authorize button in the top right, enter
Bearer YOUR_TOKEN, and you can test all endpoints interactively.The Swagger UI includes full request/response schemas, example values, and documented error codes for every endpoint.
Testing Request Batching
To see batching in action, send multiple requests for the same coin within the 5-second window:Querying Price History
After making a few price requests, query the historical data:Date Range Filtering
Filter by date range using ISO 8601 format:Common Issues
401 Unauthorized Error
401 Unauthorized Error
503 Service Unavailable
503 Service Unavailable
429 Rate Limit Exceeded
429 Rate Limit Exceeded
You’ve hit the throttle limit (default: 20 requests per 60 seconds). Wait a minute or adjust
THROTTLE_GLOBAL_LIMIT in .env.404 Coin Not Found
404 Coin Not Found
The coin ID doesn’t exist in CoinGecko. Use lowercase names like
bitcoin, ethereum, cardano. Check CoinGecko’s coin list.Stopping the Services
When you’re done:Next Steps
Installation Guide
Learn about local development setup and multi-instance deployments
API Reference
Explore all endpoints, parameters, and error codes in detail
Configuration
Customize batching behavior, rate limits, and more
Architecture
Deep dive into how batching and coordination work