Skip to content

TechNinjaz/DigiMenu

Repository files navigation

DigiMenu APP

Project Architecture

Core Project

This is when you define your contract like Domain entities and Interfacies .

This should never be dependant to any project
Infrastructure Project

This layer hold the dbcontext ,respository, services, migration, extensions , configs etc. In here, we define database access (typically in the shape of repositories), integrations with other network services, caches, etc. This project/layer contains the physical implementation of the interfaces defined in our Core project

This is dependant to Core Project only
Presentaion Project

This is where you RestAPI and Angular(ClientApp) is defined

This is dependant to Infrastructure Project

Environment Setup

when you run project the 1st time it will download node packages defined in TechNinjaz.DigiMenu.Presentation/ClientApp/package.json

Migration

command

  • add dotnet ef migrations add newMigrationName -p TechNinjaz.DigiMenu.Infrastructure -s TechNinjaz.DigiMenu.Presentation
  • create script dotnet ef migrations script newMigrationName -p TechNinjaz.DigiMenu.Infrastructure -s TechNinjaz.DigiMenu.Presentation
  • apply changes to db dotnet ef database update -p TechNinjaz.DigiMenu.Infrastructure -s TechNinjaz.DigiMenu.Presentation

currently we using SQLite so we need to drop all migrations/db and add them when changing new db model. you can use anther db but just update

  • StartupExtension.AddDefaultDatabaseContext
  • DesignTimeContextFactory

Third Party Libs and Framework Docs

git cheat sheet

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •