Skip to content

Clothing shop designed in .NET 8 in onion architecture using JwtBearer auth, MediatR, RazorPages, SignalR real-time updates, Redis cache, EF Core triggers and scheduling, concurrent booking, CI/CD support, Docker/Docker-compose support.

Notifications You must be signed in to change notification settings

kudima03/ClothingShop

Repository files navigation

ClothingShop

Build and publish releases

Overview.mp4

Running project

Running the project locally

All of the project's functionality works with just the web application running. However, project requires connections to Postgres(optionally from v1.0.14) and Redis. By default in the development mode project uses in-memory database, if you want to use real Postgres database you should override parameter in appsettings.Development.json

"UseInMemoryDatabase":  true,

to false. Then you should override your authorization secrets and connection strings by your own values:

"ConnectionStrings": {
  "ShopConnection":
    "Host=<YOUR-HOST>;Port=<YOUR-PORT>;Database=<YOUR-DATABASE-NAME>;Username=<YOUR-USERNAME>;Password=<YOUR-PASSWORD>;",
  "IdentityConnection":
    "Host=<YOUR-HOST>;Port=<YOUR-PORT>;Database=<YOUR-DATABASE-NAME>;Username=<YOUR-USERNAME>;Password=<YOUR-PASSWORD>;",
  "RedisConnection": "redis://localhost:6379" //Default redis docker port
},
"JwtSettings": {
  "Issuer": "<YOUR-VALUE>",
  "Audience": "<YOUR-VALUE>",
  "SecretKey": "<YOUR-VALUE>",
  "TokenLifetimeMinutes": 2880 //48 hours
},

Then you can access localhost:7068/account/login.

Docker Compose

You can simply run docker-compose in project which will automatically download, configure and start all dependencies with command

docker-compose -f "docker-compose.yml" up -d

Then you can access localhost:5001/account/login.

About

Clothing shop designed in .NET 8 in onion architecture using JwtBearer auth, MediatR, RazorPages, SignalR real-time updates, Redis cache, EF Core triggers and scheduling, concurrent booking, CI/CD support, Docker/Docker-compose support.

Resources

Stars

Watchers

Forks

Packages

No packages published