This project is inspired by a course. It teaches the basics of Entity Framework and Minimal API with C#. It implements CRUD methods for artists, genres, and songs. You can easily play with this using Nix ⛄.
Actualy, it has three projects:
- ScreenSound
- ScreenSoundCore
- ScreenSoundAPI
ScreenSound is the old console line aplication (CLI). I plan on getting it
to work again, but right now, it is not stable. ScreenSoundCore is, as the name
implies, where the core functionality lives. It contains the models shared
between API and CLI. ScreenSoundAPI, in other hand, is the actual API. Build
this project using dotnet.
This is the easiest way. Search for Nix and install it on your machine.
Remeber: nix can be installed on windows through windows subsystem for Linux
(WSL). After installing it, check if flake and nix-command are enabled. If
not, enable them, nerd 🤓! (I know you can do it, rigth?)
With nix configured on your machine, just run:
nix run github:CaueAnjos/ScreenSound-DBThis should work just fine if you already have the Docker daemon set up. If it doesn’t, go set up Docker on your machine. With Podman, this process would potentially be simpler because it doesn't need a daemon.
If you want to use podman try this:
nix run github:CaueAnjos/ScreenSound-DB#podmanSupportThe only official way to install it is through Nix. I know, its a bit clunky for a c# project, but I promise: Nix is cool 😎. To install, simply add this repo to your flake inputs and call the default package. Or, even simpler, run the command below:
nix profile add github:CaueAnjos/ScreenSound-DBWith this, now you have the power of ScreenSound-DB on your palm! run it any
time with screensound-api on your terminal.
Open localhost:5000/scalar in your browser and explore! Add music, artists,
and genres. Mess around with things. If anything breaks, it's a feature 🥶.
There is just one step: remove ScreenSound-DB of your system.
- Remove ScreenSoundAPI
nix profile remove ScreenSound-DB