An open API service indexing awesome lists of open source software.

https://github.com/andrewradev/rust-spotiferris

A Rust web experiment -- a music management app (very incomplete)
https://github.com/andrewradev/rust-spotiferris

Last synced: 13 days ago
JSON representation

A Rust web experiment -- a music management app (very incomplete)

Awesome Lists containing this project

README

        

# Spotiferris

A music management app that uses [Actix](https://actix.rs/) for a web server, [SQLx](https://github.com/launchbadge/sqlx) for the database, and [Askama](https://github.com/djc/askama) for templating.

Created as a learning experiment, not intended for any serious use.

## Installation

Install sqlx:

``` .sh-session
$ cargo install sqlx-cli --no-default-features --features rustls,postgres
```

Set up the postgres databases:

``` .sh-session
$ cargo sqlx database setup
```

Running the tests should now work. They use `sqlx::test` to run on test databases.

Launch development server with `./server` (port 7000), which uses [cargo-watch](https://github.com/watchexec/cargo-watch).

## Compilation

To improve compilation times, you might want to use the [mold linker](https://github.com/rui314/mold) by placing this in `.cargo/config.toml`:

```toml
[target.x86_64-unknown-linux-gnu]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]
```