A lightweight, self-hosted cryptocurrency tracker built with SvelteKit. It pulls market data from the CoinMarketCap API and caches it in PostgreSQL to avoid rate limits.
I built this for a UI design class at school. The goal was to recreate the CoinMarketCap user experience, but with my own take on the interface design. It uses Svelte 5 for the frontend and handles routing and API calls on the server.
You need Node.js and Docker installed on your machine. You will also need a free API key from CoinMarketCap.
npm install
npm run db:start
npm run db:push
npm run dev
The app runs at http://localhost:5173.
To deploy to production, build the app first:
npm run build
This generates a Node server in the build/ directory. You can run it directly:
node build/index.js
I usually run this behind an Nginx reverse proxy using PM2 to keep the Node process alive.