Dev Environment

Pre-Requisites
  1. Install Node 14.15.4
  2. Install NPM 6.14.10
    • Open Cmd and paste the following command
    • npm i npm@6.14.10
  3. Install TypeScript 4.5.5
    • Open vscode terminal once open the project and paste the following command
    • npm install typescript@4.5.5
  4. .Net core 3.1
  5. Vue js 2.4
    • Open vscode terminal once open the project and paste the following command
    • npm install -g @vue/cli
Step 1: Dotnet Environment Setup
  1. Path Setup:
    properties → Advanced system settings → Environment variables → System variables → New
  2. Details to be Provided:
    Variable name: DOTNET_ENVIRONMENT
    Variable Value: Development
    Click OK
  3. Change Date Format:
    System settings → Time & Language → Date, time & regional formatting → country or region
    : United states → Regional format : English ( United States).
    RESTART THE MACHINE AFTER COMPLETING STEP 1.
Step 2: Cloning the project from Github
  1. Checkout to MAJ/PAL16-Dbcontext branch.
  2. Open System1.sln in Visual Studio.
  3. Once Project is loaded change the Connection String
  4. Do the changes in all projects files - appSetting.Developement.json
    • System1ConnectionString
    • System1JobConnectionString
    • System1IdpConnectionString
  5. Give Database name as →
    • System1ConnectionString : DS1-001-Admin
    • System1JobConnectionString :DS1-001-Jobs
    • System1IdpConnectionString : DS1-001-IDP
  6. Run each project separately.

    (note :While running the project separately if visual studio asks to install SSL Certificate . Then confirm it with YES.)

Step 3: DB-UP Setup
  1. In Admin
    • System1.DBUP.Admin → RightClick and select “Set as startup project”and run the project.
  2. Open SSMS (SQL Server Management Studio)
    • Create a New database with the name DS1-001-Jobs
  3. In DBUP
    • System1.DBUP.Identity → RightClick and select “Set as startup project” and run the project.
  4. Set the below project as startup projects and run the same.
    • System1.Automations
    • System1.Api
    • System1.IdentityProvider
    • System1.UI.Admin
Step 4: VS-Code Run
  1. VS-CODE
  2. File → OpenFolder → [Go to System1 Location in file explorer] → Open Admin → Select App and click OK

  3. Open terminal in VS-Code and run the following commands.
  4. npm i npm run serve SET
  5. Set multiple startup projects and run the same
    • System1.Automations → START
    • System1.Api → START
    • System1.IdentityProvider → START
    • System1.UI.Admin → START
Step 5: User Set-up
  1. Open Admin with the below Credentials
  2. Username : @admin.com
    Password : Ecgroup2#
  3. In Tenant User page provide details as in the below screenshot
  4. Create User : Security → User → Add user
Step 6: Final Set-up
  1. Stop the Project and set System1.DBUP.Admin as startup project and run the same.
  2. Set multiple startup projects and run the same.
    • System1.Automations → START
    • System1.Api → START
    • System1.IdentityProvider → START
    • System1.UI.Admin → START
  3. Login → Security →Users →Edit the user with edit button and assign the tenant value to the user.
  4. Terminate the terminal in Visual Studio Code.
  5. In Visual studio → run the app → System1.UI.App → set as startup project and run this project.
  6. In System1.UI.App → App → Open folder in file explorer → Open this module in Visual studio code.
  7. Open terminal in VS-Code and run the following commands.
  8. npm i npm run serve
  9. Set multiple startup projects and run the same.
    • System1.Automations → START
    • System1.Api → START
    • System1.IdentityProvider → START
    • System1.UI.Admin → START
  10. Login to the App with the data found in DB.
  11. Go to SSMS → Database → DS1-001-jobs → select * from HangFire.job → you will find the username and one time password generated in this use this data to login to APP.