Skip to content

Latest commit

 

History

History
33 lines (27 loc) · 1.26 KB

README.md

File metadata and controls

33 lines (27 loc) · 1.26 KB

New Project Template - HAVIT Blazor Stack

Clonning template contents into new folder

If you have a local repository
git checkout-index --prefix=git-export-dir/ -a

Or create a new GitHub repository from template:
https://github.com/havit/NewProjectTemplate-Blazor/generate

Initial Setup

  1. SetupSolution.ps1 (replaces NewProjectTemplate with YourProjectName etc.)
    1. Open SetupSolution.ps1 and set parameters.
    2. Run SetupSolution.ps1.
    3. Delete SetupSolution.ps1
  2. Adjust the Model - remove unnecessary entities (Country, Localizations, ...)
  3. Rebuild the solution
  4. Run DataLayer CodeGenerator (Run-CodeGenerator.ps1)
  5. Create an initial EF migration
    1. Drop the current migrations - delete Entity/Migrations folder
    2. Add new initial migration Add-Migration Initial -StartupProject Entity.Tests
  6. Check all configuration files (including PublishScripts folder).
  7. Set Web.Server as the startup project.
  8. Run the app...

Further Steps

  1. Update NuGet packages in solution.
  2. Application Insights - set InstrumentationKey
    1. Web.Server / appSettings.json
    2. Web.Client / wwwroot / appSettings.json
  3. Identity Server - set Keys for deployment (Web.Server / appSettings.json)

(Use PublishScripts folder for deployment settings.)