fastmusic is an SQLite/.NET Core REST API designed for home music streaming. fastmusic exists because writing it was faster than setting up Ampache/HTTPd/MySQL/PHP/FastCGI.
Clone the repository and make sure you have the .NET Core CLI installed.
Make a copy of config_default.txt called config.txt and set the configuration values appropriately.
Then, run the following from the root of the repository:
-
dotnet restore(installs dependencies) -
dotnet build(builds fastmusic) -
dotnet ef database update(creates an empty database) -
dotnet run -
You can now start querying the API (try
/api/Music/AlbumsByArtistto see all your discographies). The database will populate in the background as fastmusic searches over your collection.
My library (just under 10,000 audio files) takes ~7 seconds to load into a clean install of fastmusic, with a nice warm drive cache (this is benchmarking the program, not my hard drive). From a cold start of fastmusic (db already initialised), returning the full set of discographies (/api/Music/AlbumsByArtist) takes about 150ms.