EAVFW.Templates 2.1.8

dotnet new install EAVFW.Templates::2.1.8
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.1.8 95 4/30/2024
2.1.7 89 4/24/2024
2.1.7-dev.1 50 4/24/2024
2.1.6 91 4/24/2024
2.1.6-dev.5 1,243 2/1/2024
2.1.6-dev.4 223 1/25/2024
2.1.6-dev.3 119 1/22/2024
2.1.6-dev.2 679 12/28/2023
2.1.6-dev.1 69 12/28/2023
2.1.5 1,060 11/28/2023
2.1.4 1,197 10/19/2023
2.1.3 690 10/2/2023
2.1.2 762 2/3/2023
2.1.1 241 2/1/2023
2.1.0 274 1/31/2023
2.1.0-dev.1 98 1/31/2023
2.0.0 521 10/5/2022
2.0.0-dev.1 88 10/5/2022
1.4.0-dev.2 99 10/3/2022
1.4.0-dev.1 124 9/28/2022
1.3.2 372 9/30/2022
1.3.1 397 9/25/2022
1.3.0 415 9/25/2022
1.2.1 451 9/25/2022
1.2.0 437 9/25/2022
1.1.0 422 9/24/2022
1.0.17 428 8/7/2022
1.0.16 409 8/6/2022
1.0.15 422 8/6/2022
1.0.14 411 8/6/2022
1.0.13 429 8/6/2022
1.0.12 423 8/6/2022
1.0.11 378 8/5/2022
1.0.10 374 8/5/2022
1.0.9 386 8/5/2022
1.0.8 408 8/5/2022
1.0.7 436 8/5/2022
1.0.6 414 8/5/2022
1.0.5 403 8/5/2022
1.0.4 375 8/5/2022