My personal API, hosted at https://api.bludood.com.
- Live fetching of current Spotify status including track, album, urls, images and more
- Live activity status from Discord
- Hosting of avatar with real-time resizing
- Contact form with notifications via Discord
Set up environment variables for the features you want available. Everything is optional.
You must have the Docker Engine installed, and optionally Docker Compose.
-
Build the image
docker build . -t bludoodapi
-
Run the image
docker run -p 1337:1337 --env-file .env bludoodapi
-
Create a compose.yml
services: bludoodapi: build: . restart: unless-stopped ports: - '1337:1337' env_file: .env
-
Build and run the image
docker compose up --build
-
Install node modules
npm install
-
Build TypeScript source
npm run build
-
Start the API
npm start
- Install node modules
npm install
- Start the server in development mode
npm run dev
The server will now compile and restart the server when you edit a file.
To enable real-time updates for Spotify (and no unnecessary spamming of their API), this uses some unofficial Spotify APIs, which could set your account at a risk of getting removed by Spotify. Use at your own risk.