Skip to content

uyen-luu/3-tier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Three-tier_architecture_sample 👋

Author

👤 Uyen Luu

Deploy the Data tier

  1. Right-click and select Publish
  2. Enter conection and type the DatabaseName then click to publish

Deploy the Application tier

  1. Run the Scaffolding command to map database to the code via EF Core. Below is a sample command, just replace your params on SERVER/DATABASE/USER/PASSWORD. Scaffold-DbContext "Data Source=SERVER;Initial Catalog=DATABASE;Persist Security Info=True;User ID=USER;Password=PASSWORD;MultipleActiveResultSets=True" Microsoft.EntityFrameworkCore.SqlServer -OutputDir Entities -ContextDir Context -Context DemoContext -f
  2. Next, open appsettings.json
  3. Update your connection string to the deployed database
  4. Update your CORS value for the deployed Presentation tier (You can update after deploy the Presentation tier by replace value of CORS then restart the site)
  5. Deploy the code to the machine of the Application tier

Deploy Presentation tier

  1. run "npm install"
  2. Open environment.prod.ts, update baseUrl to hosted address of Application tier
  3. run "npm run build"
  4. Go to dist folder and copy all Code
  5. Deploy the code to the machine of Presentation tier

Give a ⭐️ if this project helped you!

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published