lyssnar

command module
v1.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2023 License: MIT Imports: 19 Imported by: 0

README

Lyssnar

Provides a small web site and API that displays what you're currently listening to on Spotify.

This is the code that is running on https://lyssnar.com

Requirements

  • PostgreSQL server
  • Spotify application

You'll need to create your own Spotify application if you want to play around with the code, you can do this for free at https://developer.spotify.com/dashboard/applications

Development

This is the setup I use when I develop, it assumes that you have a Postgres server running on your computer and that you have acquired client id and secrets for your own Spotify app.

$ cat .env
PORT=8080
DATABASE_URL=postgres://@localhost:5432/lyssnar?sslmode=disable
SPOTIFY_CLIENT_ID=<client id>
SPOTIFY_CLIENT_SECRET=<client secret>
SPOTIFY_CALLBACK=http://localhost:8080/callback
$ export $(cat .env | xargs)
$ make
$ ./lyssnar
$ open http://localhost:8080

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL