A collection of crates that can be used to create a binary executable that handles the storage and retrieval of lyrics and playlists. Configuration of the storage backend is done through environment variables.
Models and LiplRepo trait. The latter is used to hide implementation details for the backend.
Storage on the filesystem.
export LIPL_STORAGE_REPO_TYPE=fs
export LIPL_STORAGE_FS_DIR=/home/paul/lipl_data/
Non persistent storage on internal memory.
export LIPL_STORAGE_REPO_TYPE=memory
export LIPL_STORAGE_MEMORY_SAMPLE=true
Storage on a postgres db.
export LIPL_STORAGE_REPO_TYPE=postgres
export LIPL_STORAGE_POSTGRES_CONNECTION="host=/var/run/postgresql dbname=lipl"
Storage on a redis server.
export LIPL_STORAGE_REPO_TYPE=redis
export LIPL_STORAGE_REDIS_CONNECTION=redis://127.0.0.1/
Sample data that can be used to play a demo or for testing.
The server component handles web requests.