Simplified e-commerce online shop with a vertical slice arhitecture built in ASP.NET Core web api, Angular , MS SQL SERVER (with Docker).
if executed first time, just do: docker compose up -d else: docker compose down -v docker compose up -d
Initiate DB Run this command in the directory where 'init.sql' exists (command prompt, not powershell)
path: simplifiedEcomm/docker/sqlserver/init.sql
command: docker exec -i ecommerce-sql //opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P TeodorIsBack!1 -C < init.sql
Run the backend:
path: simplifiedEcomm/src/Ecommerce.Api command: dotnet run
Run the frontend:
path: simplifiedEcomm/frontend/angular-fe command: ng serve
Enjoy!
For adding products to shopping cart we need to register && login .