EAVFW.Templates 1.3.0

There is a newer version of this package available.
See the version list below for details.
dotnet new install EAVFW.Templates::1.3.0                
This package contains a .NET Template Package you can call from the shell/command line.

EAVFW

Cool get started ReadMe

Install framework

From the root of the project run:

dotnet new --install .\templates\EAVFW\

then also run:

dotnet new --install .\templates\EAVFW.NextJS\

Uninstall framework (to reinstall it)

dotnet new --uninstall .\templates\EAVFW\

Apply the template in another folder

At a folder on the same level as the template folder, run:

dotnet new eavfw

or

dotnet new eavfw --namespace "<customerAcronym>" --appName "<myApp>" --databaseName "<mainDatabase1>"

where

  • <customerAcronym> could be an acrynom for the customer organisation.
  • <myApp> could be the name of the app.
  • <mainDatabase1> could be the desired name for the database schema.

Example: dotnet new eavfw --namespace "MyOrg001" --appName "MyEAVTestApp001" --databaseName "MyEAVTestAppDatabase001"

<br> For information about the parameters, run:

dotnet new eavfw -h

Overall guide for starting a new EAV project from this Template

https://github.com/EAVFW/EAVFW/wiki

Guide for setting up base project

(*step 1 to 3 is the same as above section Apply the template in another folder)

  • Step 1 Make a new directory at the same level as the cloned EAVFW.Templates. This directory will become the root directory for the generated EAV project. (e.g. a new directory called "MyEAV001" located in the "dev" directory)
  • Step 2: Open a CLI in the root of the new directory.
  • Step 3: Start the new project by using dotnet new eavfw --namespace "<customerAcronym>" --appName "<MyApp>" --databaseName "<DatabaseName>" . Where:
    • <customerAcronym> represents an acronym or short name for the customer for which the solution will be developed.
    • <MyApp> represents the name of the app project in the solution.
    • <DatabaseName> represents the name of the main database schema. (e.g. dotnet new eavfw --namespace "MyOrg001" --appName "MyEAVTestApp001" --databaseName "MyEAVTestAppDatabase001")
  • Step 4: When applying the framework the CLI output will request confirmation for the usage of different tools and extensions. You most likely want to accept all of them (y and hit enter when prompted).
  • Step 5: Open the project in an IDE (can be done simply be opening the .csproj file, from the newly created directory containing the solution, in VS).
  • Step 6: After the project has completed opening. Rebuild the solution twice. Then build the solution twice.

Guide for setting up for web

  • Step 1: Open a CLI in the root of the repository created in Guide for setting up base project
  • Step 2: Generate the web files using npm run eav-nextjs .
  • Step 3: Install the needed dependencies using npm install --force
  • Step 3.5: If not already done as part of applying the template, run npm run gm to generate the manifest.
  • Step 4: Navigate to the web portal in the CLI. Can be done using cd .\apps\<customerAcronym>.<MyApp> where <customerAcronym> and <MyApp> is replaced by the names you chose in part 1 (you can click tab in most CLIs to get suggestions).
  • Step 5: Build the web project with npm run build. This should build and export the files required for the web portal to run.

Guide for creating and applying database migration

  • Step 1: dotnet tool run eavfw-manifest manifest new-migration before any database changes are done to the manifest(s).
  • Step 2: Make cahnges tot he manifest and bump the version in manifest.json
  • Step 3: npm run gm to generate the manifest with the changes.
  • Step 4: npm run eavfw-gen-migrations to generate the migration script. (They are located in /obj/dbinit in the root of the project)
  • Step 5: npm run eavfw-apply-migrations to apply the migration.

Step 3 to 5 can be executed running npm run eavfw-migrate.

When developing

If changes are made to the template it can be necessary to refresh cache for the cmd window or terminal used to apply the template:

dotnet new --debug:rebuildcache

Developing on the newly created project

See documentation in the newly created projects README located in the 'Solution Items' folder. Or go to https://github.com/EAVFW/EAVFW/wiki.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
2.2.9 63 12/9/2024
2.2.8 74 12/9/2024
2.2.7 102 11/16/2024
2.2.6 95 11/7/2024
2.2.5 105 10/2/2024
2.2.4 168 8/8/2024
2.2.3 137 7/9/2024
2.2.2 127 7/2/2024
2.2.1 127 6/25/2024
2.2.0 110 6/25/2024
2.1.9 140 5/31/2024
2.1.8 170 4/30/2024
2.1.7 119 4/24/2024
2.1.7-dev.1 68 4/24/2024
2.1.6 123 4/24/2024
2.1.6-dev.5 1,264 2/1/2024
2.1.6-dev.4 239 1/25/2024
2.1.6-dev.3 135 1/22/2024
2.1.6-dev.2 694 12/28/2023
2.1.6-dev.1 86 12/28/2023
2.1.5 1,102 11/28/2023
2.1.4 1,242 10/19/2023
2.1.3 737 10/2/2023
2.1.2 796 2/3/2023
2.1.1 265 2/1/2023
2.1.0 322 1/31/2023
2.1.0-dev.1 113 1/31/2023
2.0.0 549 10/5/2022
2.0.0-dev.1 107 10/5/2022
1.4.0-dev.2 116 10/3/2022
1.4.0-dev.1 143 9/28/2022
1.3.2 401 9/30/2022
1.3.1 426 9/25/2022
1.3.0 443 9/25/2022
1.2.1 483 9/25/2022
1.2.0 470 9/25/2022
1.1.0 446 9/24/2022
1.0.17 463 8/7/2022
1.0.16 436 8/6/2022
1.0.15 449 8/6/2022
1.0.14 442 8/6/2022
1.0.13 459 8/6/2022
1.0.12 472 8/6/2022
1.0.11 410 8/5/2022
1.0.10 409 8/5/2022
1.0.9 419 8/5/2022
1.0.8 437 8/5/2022
1.0.7 483 8/5/2022
1.0.6 447 8/5/2022
1.0.5 440 8/5/2022
1.0.4 409 8/5/2022