/music-store

A full-stack app to sell music. Written with .NET API & React.

Primary LanguageJavaScript

Music Store

demo

Tech stack

  • .NET 6
  • PostgreSQL
  • Entity Framework
  • AutoMapper
  • React
  • Tailwind CSS

How to run locally

  1. Download and install .NET 6
  2. Download, install, and start Docker Desktop
  3. Open a terminal in the root of the repository, and run docker-compose up -d
  4. Create a migration with cd .\MusicStore.Server\, then dotnet ef migrations add v1. Subsequent migrations can be named v2 etc.
  5. Apply the migration with dotnet ef database update
  6. Start the API server with dotnet run, or pressing F5 in Visual Studio
  7. Start the frontend:
    1. cd ..\MusicStore.Client\
    2. npm install
    3. npm run dev

Optional: Install this VS Code extension to interact with the database.