EAVFW.Templates 2.2.6

There is a newer version of this package available.
See the version list below for details.
dotnet new install EAVFW.Templates::2.2.6                
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.7 71 11/16/2024
2.2.6 76 11/7/2024
2.2.5 99 10/2/2024
2.2.4 162 8/8/2024
2.2.3 131 7/9/2024
2.2.2 121 7/2/2024
2.2.1 119 6/25/2024
2.2.0 100 6/25/2024
2.1.9 132 5/31/2024
2.1.8 166 4/30/2024
2.1.7 113 4/24/2024
2.1.7-dev.1 66 4/24/2024
2.1.6 119 4/24/2024
2.1.6-dev.5 1,262 2/1/2024
2.1.6-dev.4 237 1/25/2024
2.1.6-dev.3 133 1/22/2024
2.1.6-dev.2 692 12/28/2023
2.1.6-dev.1 84 12/28/2023
2.1.5 1,098 11/28/2023
2.1.4 1,238 10/19/2023
2.1.3 733 10/2/2023
2.1.2 790 2/3/2023
2.1.1 261 2/1/2023
2.1.0 318 1/31/2023
2.1.0-dev.1 111 1/31/2023
2.0.0 545 10/5/2022
2.0.0-dev.1 105 10/5/2022
1.4.0-dev.2 114 10/3/2022
1.4.0-dev.1 141 9/28/2022
1.3.2 397 9/30/2022
1.3.1 422 9/25/2022
1.3.0 439 9/25/2022
1.2.1 479 9/25/2022
1.2.0 466 9/25/2022
1.1.0 442 9/24/2022
1.0.17 459 8/7/2022
1.0.16 432 8/6/2022
1.0.15 445 8/6/2022
1.0.14 438 8/6/2022
1.0.13 453 8/6/2022
1.0.12 468 8/6/2022
1.0.11 406 8/5/2022
1.0.10 405 8/5/2022
1.0.9 415 8/5/2022
1.0.8 433 8/5/2022
1.0.7 479 8/5/2022
1.0.6 443 8/5/2022
1.0.5 436 8/5/2022
1.0.4 405 8/5/2022