Build your first project
-
Create a project "MyFirstProject" with company name "MyCompany" using the BIAToolKit in folder "C:\Sources\Test". Step describe here. If you have company files used them to have correct settings.
-
Open the folder "C:\Sources\Test\MyFirstProject"
-
Create the database: a. If you use SqlServer: Open Sql Server Management Studio and create a database named "MyFirstProject"
b. If you use PostGreSQL Use pgAdmin 4 to create your database.
-
Open with Visual Studio code (VSCode) the folder "C:\Sources\Test\MyFirstProject"
-
ONLY If you have not company files containing configuration files
-
In project DotNet\MyCompany.MyFirstProject.DeployDB rename files
- appsettings.Example_Development.json => appsettings.Development.json
- bianetconfig.Example_Development.json => bianetconfig.Development.json
-
In project DotNet\MyCompany.MyFirstProject.Presentation.Api rename files
- appsettings.Example_Development.json => appsettings.Development.json
- bianetconfig.Example_Development.json => bianetconfig.Development.json
-
In project DotNet\MyCompany.MyFirstProject.WorkerService rename files
- appsettings.Example_Development.json => appsettings.Development.json
- bianetconfig.Example_Development.json => bianetconfig.Development.json
-
-
Create the first database migration:
- In VSCode (folder MyFirstProject) press F1
- Click "Tasks: Run Tasks".
- Click "Database Add migration SqlServer" if you use SqlServer or "Database Add migration PostGreSql" if you use PostGerSql.
- Let the name "Initial" for this first migration and press enter.
- Console must display no error message and verify new file '...Initial.cs' is created:
-
Deploy the base:
- In VS Code Run and debug the "DotNet DeployDB"
- Verify tables are created in the database:
- In VS Code Run and debug the "DotNet DeployDB"
-
Run the WebApi:
-
In VSCode Run and debug "DotNet WebApi"
-
The swagger page will be open.
Click on "BIA login" at bottom right.
The button will be green.
-
If the button is red it is probably an error in bianetconfig.Development.json.
-
-
Run the Front
- Do not stop the Run of the "DotNet WebApi" launched in previous step
- Install npm:
- In VSCode (folder MyFirstProject) press F1
- Click "Tasks: Run Tasks".
- Click "Angular: install".
- In VSCode Run and debug "Angular + npm start"
- Open a browser at address http://localhost:4200/