Welcome to MESS:
Startup
Note: There are several seeders that will input required entries into the database if the database does not contain any entries This includes a default Technician account that is required to log in to MESS and to start creating WorkInstructions, Users, etc.
Change Default Technician Password.
Work Instruction Import
Currently Supported Rich-Text Features
- Bold
- Hyperlinks
- Underline
- Italics
- Strikethrough
- Colors (Only Theme and Direct Font Color. Index color currently NOT supported)
Not Supported Rich-Text Features
- Fonts
- Index colors
- Formulas
- Other more specific features.
EF Core (Common Database Interactions)
NOTE: For both of these commands you must be in the MESS.Data directory, otherwise you must specify the base project as well.
Migrations
dotnet ef migrations add "MIGRATION_NAME" --startup-project ..\MESS.Blazor\MESS.Blazor.csproj
Updates
dotnet ef database update --startup-project ..\MESS.Blazor\MESS.Blazor.csproj
Secret Management
NOTE: This should only be used for development purposes
Instead of using "appsettings.*.json" for managing environment variables or user secrets we have opted to utilize the .NET Secret Manager for development purposes. For more information see .NET Secret Manager
Quick Start
In terms of the MESS project you should not have to initial the Secret Manager since it will already be in each appropriate project. However, in the case that the Secret Manager is being redone use the following command:
Instantiate User Manager (New Projects only)
dotnet user-secrets init
Set a secret
dotnet user-secrets set "Key" "Value"
Example
dotnet user-secrets set "DatabaseConnection" "Data Source = 123456.db"
Setup Development Database connection
dotnet user-secrets set "ConnectionStrings:MESSConnection" "Data Source=developmentMESSDb.db"