👤 Uyen Luu
- Right-click and select Publish
- Enter conection and type the DatabaseName then click to publish
- 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
- Next, open appsettings.json
- Update your connection string to the deployed database
- 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)
- Deploy the code to the machine of the Application tier
- run "npm install"
- Open environment.prod.ts, update baseUrl to hosted address of Application tier
- run "npm run build"
- Go to dist folder and copy all Code
- Deploy the code to the machine of Presentation tier
Give a ⭐️ if this project helped you!