Backend REST API for the Market Viewer — a device that displays real-time market data (stocks, crypto, clock, AI text) on small microcontroller with display.
⚠️ Project is still work in progress
- Docker & Docker Compose
- A
.envfile in the project root (see template below)
Copy .env.example to .env and set the variables:
cp .env.docker .env
Note: Update environment variables for public API deployments. Default values are safe for local use only.
⚠️ Note on Database Credentials: If you change the database credentials in your .env file after the application has already been started, you must fully reset the database environment for the changes to take effect. You can do this by runningsudo docker compose down -v. Warning: This command removes the database volume and will permanently delete all your existing data.
- Download the latest release or clone this repo
- Run with docker
- run these commands (for linux):
git clone https://github.com/market-viewer/api.git &&
cd api &&
cp .env.example .env &&
docker compose up -dThe API will be available at http://localhost:8080.
Full interactive docs available at https://api.market-viewer.jotalac.dev/swagger-ui/index.html.
- or
http://localhost:8080/swagger-ui/index.html- when you run the app locally
- Crypto:
- coingecko
- Stock
- twelvedata