mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
Track your Spotify listens
## [1.7.1](https://github.com/apricote/Listory/compare/v1.7.0...v1.7.1) (2020-11-17) ### Bug Fixes * **helm:** add sentry options ([ |
||
|---|---|---|
| .github/workflows | ||
| assets | ||
| charts/listory | ||
| frontend | ||
| src | ||
| test | ||
| .dockerignore | ||
| .env.sample | ||
| .gitignore | ||
| .releaserc.yml | ||
| CHANGELOG.md | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| nest-cli.json | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| renovate.json | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tslint.json | ||
Listory
Login with Spotify and Listory will save all tracks you listen to.
Installation
End-user Installation of Listory is not yet fully supported and the docs in this section are not complete.
Configuration
All configuration must be set as environment variables. Default values are added in bold, values that are required are marked with Required.
Application
PORT: 3000: Port the webserver will listen on.APP_URL: http://localhost:3000: Public URL of the Application, is used to generate Links.
Authentication
JWT_SECRET: Required, used to sign the JWTs.JWT_ALGORITHM: HS256: Algorithm used to sign the JWTs. One ofHS256,HS384,HS512JWT_EXPIRATION_TIME: 1d: Lifetime of signed JWTs. Accepts strings like1d,2h,15m.
Spotify
SPOTIFY_CLIENT_ID: Required, Spotify App Client IDSPOTIFY_CLIENT_SECRET: Required, Spotify App Client SecretSPOTIFY_FETCH_INTERVAL_MIN: 5: Interval for fetching recently listened tracks from Spotify.SPOTIFY_WEB_API_URL: https://api.spotify.com/: Spotify WEB API Endpoint.SPOTIFY_AUTH_API_URL: https://acounts.spotify.com/: Spotify Authentication API Endpoint.SPOTIFY_USER_FILTER: "": If set, only allow Spotify users with these ids to access the app. If empty, allow all users to access the app. Seperate ids with,eg.:231421323123,other_id.
Database
DB_HOST: Required, Database hostDB_USERNAME: Required, Database usernameDB_PASSWORD: Required, Database passwordDB_DATABASE: Required, Database database
Development
Configure Spotify API Access
Copy the file .env.sample to .env and add your Spotify API Key.
Starting the application
We use docker-compose to provide a full local development environment.
$ docker-compose up
You can now access the frontend at http://localhost:3000 and the API at http://localhost:3000/api.
Frontend and API will automatically reload on any code changes.
Test
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
License
Listory is MIT licensed.