Blazor Server App used for managing and creating forms
- .NET 6 runtime
- Powershell Script Execution Access (Optional), this is to generate migrations faster you don't actually need this, although to run ef scripts you should build in release
You have to set these config keys for the project to run as intended
These can be set in appsettings.json or secrets.json
Privacy & Website Options:
eg.
You must also set the RootUserOptions like above, the fields are Email & Password
For email confirmation to be set up properly the configuration in the core library EmailOptions has to be set for emails to be sent on registration
- Before running the project I advise you to configure some things as you may not like the defaults
-
If you run the web project in debug it will use an in memory provider
-
If you run in release it will use the selected provider and run the
Database.EnsureCreated()
function which creates the db if it doesn't exist already -
Db-Provider in ./appsettings.json sets what database provider the application will use. The supported options are Sqlite, SqlServer & Postgres
-
Once the provider is set you can use the powershell scripts in the project root to create a migration
-
You should run
./setup.ps1
if you don't have Entity Framework Tools installed, or if you need to update them as you might need to update them for new versions of the app -
To run for a provider the syntax is
./[provider-name]-migrate.ps1 [migration-name]
-
For example
./sqlite-migrate.ps1 InitialCreate
git clone https://github.com/ac111897/AvcolForms.git
cd AvcolForms\AvcolForms.Web
dotnet run
git clone https://github.com/ac111897/AvcolForms.git
cd AvcolForms\AvcolForms.Test
dotnet test