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)
- Host: GitHub
- URL: https://github.com/andrewradev/rust-spotiferris
- Owner: AndrewRadev
- Created: 2019-01-04T09:32:29.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-01-25T12:23:43.000Z (3 months ago)
- Last Synced: 2025-04-13T18:57:06.263Z (15 days ago)
- Language: Rust
- Size: 315 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"]
```