Skip to content

CaueAnjos/ScreenSound-DB

 
 

Repository files navigation

Screen-SoundDB 🪑🎲

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 ⛄.

How to Build this thing?

Actualy, it has three projects:

  1. ScreenSound
  2. ScreenSoundCore
  3. 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.

Build and run with Nix ❄️

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-DB

This 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#podmanSupport

Installation

The 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-DB

With this, now you have the power of ScreenSound-DB on your palm! run it any time with screensound-api on your terminal.

Exploring API 🧭

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 🥶.

Uninstalling

There is just one step: remove ScreenSound-DB of your system.

  1. Remove ScreenSoundAPI
nix profile remove ScreenSound-DB

About

This is part of a course—a simple application designed to practice data persistence.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • C# 94.5%
  • Nix 4.2%
  • Shell 1.3%