https://github.com/jaemk/spot
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jaemk/spot
- Owner: jaemk
- Created: 2020-12-28T23:52:26.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-11-17T22:56:09.000Z (over 2 years ago)
- Last Synced: 2025-01-20T00:47:44.396Z (4 months ago)
- Language: Rust
- Size: 8.52 MB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spot
> Spotify utilities
## Setup
* Install rust
* `cargo install migrant --features postgres`
* Create a `.env` by copying the `.env.sample`. The migration tool (`migrant`),
the server application, and the `sqlx` database library will all automatically
apply any values listed in your `.env` to the current environment, so you don't
need to "source" the .env manually.
* Setup a postgres db with the `DB_*` values listed in your env.
* `migrant setup`
* `migrant apply -a`
* Create a spotify "app" here https://developer.spotify.com/dashboard/applications
* Copy your `SPOTIFY_CLIENT_ID` and `SPOTIFY_CLIENT_SECRET` to your `.env`
* `cargo run`, note that `sqlx` needs to see a `DATABASE_URL` (set in your `.env`)
environment variable at compile time to validate database queries.