Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Gomaink/your_lastfm

Repository files navigation

Status License

Your LastFM

A containerized Node.js application that synchronizes scrobbles from Last.fm, stores them in a local SQLite database, and serves a web dashboard.


Project

Your LastFM is a Node.js application designed to automatically synchronize music scrobbles from Last.fm. It preserves your listening history in a local SQLite database and serves a web interface for data visualization.

The project is fully containerized with Docker, using an automated entrypoint to handle database initialization and sequential execution (Syncing first, then launching the Web API). It also utilizes PM2 as a process manager inside the container to ensure the web service remains active and resilient.

Prerequisites

Installation

Create a .env file

LASTFM_API_KEY=your_lastfm_api_key
LASTFM_USERNAME=your_lastfm_username

Last.fm: Create an API account here to get your API Key.

Docker Compose

services:
  your-lastfm:
    image: gomaink/your-lastfm
    container_name: your-lastfm
    ports:
      - "1533:1533"
    env_file:
      - .env
    volumes:
      - ./data:/app/data
    restart: unless-stopped

On terminal: docker compose up -d

Then access:

http://localhost:1533

(or replace localhost with your server IP)

License

This project is licensed under the MIT License.