stylish readme

This commit is contained in:
XenGi 2024-01-22 13:10:30 +01:00
parent 8881505d57
commit ce6e8ecf21
Signed by: xengi
SSH key fingerprint: SHA256:jxWM2RTHvxxcncXycwwWkP7HCWb4VREN05UGJTbIPZg
3 changed files with 42 additions and 9 deletions

View file

@ -10,7 +10,7 @@ mpd: ## Run mpd test instance
mpd --no-daemon ./mpd.conf mpd --no-daemon ./mpd.conf
run: build ## Run project run: build ## Run project
./server ./${PROJECT}
build: ## Compile project build: ## Compile project
go build -v -o ${PROJECT} go build -v -o ${PROJECT}

View file

@ -1,21 +1,32 @@
[![maintained](https://img.shields.io/maintenance/yes/2024)]() [![maintained](https://img.shields.io/maintenance/yes/2024)]()
# sanic # 🦔 sanic
chaos music control inspired by [relaxx player][relaxx] chaos music control inspired by [relaxx player][relaxx]
## ✨ Features
## features
- mpd web gui - mpd web gui
- search music - search music
- organize playlists - organize playlists
- control current playback queue - control current playback queue
- no authentication required to control music playback - no authentication required to control music playback
- add music from other sources like youtube (`youtube-dl`)
- add playlists from internet radios (`*.m3u`, `*.pls`) - add playlists from internet radios (`*.m3u`, `*.pls`)
- add music from other sources like youtube (`youtube-dl`)
## development ## 🛠️ Development
sanic is developed using [Nix][nix], but you can also just use the usual Golang tooling.
Run local [MPD][mpd] instance for testing with `make mpd`.
### ❄️ w/ Nix
Enter development shell (also has [mpc][mpc] client installed for testing):
```shell
nix develop
```
Build nix flake: Build nix flake:
@ -23,12 +34,34 @@ Build nix flake:
nix build nix build
``` ```
## architecture ### 🐧 w/o Nix
Use these Make targets for convenience:
- `run`: Run project
- `build`: Compile project
- `tidy`: Add missing and remove unused modules
- `verify`: Verify dependencies have expected content
- `test`: Run tests
- `cert`: Create https certificate for local testing
### 🐳 Container
You can run sanic in a container. Use these Make targets for convenience:
- `build-container`: Build container image
- `run-container`: Run container image
## 🗺️ Architecture
[![Architecture](https://git.berlin.ccc.de/cccb/sanic/raw/branch/main/architecture.drawio.svg)](https://app.diagrams.net/?mode=git.berlin.ccc.de#Hcccb%2Fsanic%2Fmain%2Farchitecture.drawio.svg) [![Architecture](https://git.berlin.ccc.de/cccb/sanic/raw/branch/main/architecture.drawio.svg)](https://app.diagrams.net/?mode=git.berlin.ccc.de#Hcccb%2Fsanic%2Fmain%2Farchitecture.drawio.svg)
--- ---
Made with ❤️ and 🐍. Made with ❤️ and ![golang logo][golang].
[relaxx]: http://relaxx.dirk-hoeschen.de/ [relaxx]: http://relaxx.dirk-hoeschen.de/
[nix]: https://nixos.org/manual/nix/stable/
[golang]: https://go.dev/images/favicon-gopher.svg
[mpd]: https://musicpd.org/
[mpc]: https://www.musicpd.org/clients/mpc/

View file

@ -5,7 +5,7 @@ port = 6600
#pasword = #pasword =
[ui] [ui]
hostname = 0.0.0.0 hostname = [::1]
port = 8080 port = 8080
tls = no tls = no
cert = cert.pem cert = cert.pem