Skip to content

luivis07/animalrescueapp

Repository files navigation

Documentation

  • Official Site: https://savingsagerescue.org/

  • Tech Requirements

    • Download Net 6.0 SDK
    • Visual Studio Code
    • Git Bash
    • Powershell (latest version)
    • node JS (make sure to install LTS version)
  • Setup

  • To Build/Run:

    • sign-in to azure from VS code using the extension mentioned above (Azure Account)
      • Note: you don't need to do this all the time but at least once the first time running the app and after if your session expires
    • dotnet build .\animalrescue.sln
    • dotnet run --project .\src\animalrescue.web\animalrescue.web.csproj
  • EF Migrations:

    • The commands below need to be executed at the root level of the application
    • Install dotnet EF tool:
      • dotnet tool install dotnet-ef --global
    • Powershell Helper
      • The migration scripts can be replaced by running .\src\infrastructure\database\helpers\applymigrations.ps1 (at the root level)
      • Examples:
        • .\src\infrastructure\database\helpers\applymigrations.ps1 updates 'Development' db to the latest migration
        • .\src\infrastructure\database\helpers\applymigrations.ps1 -migrationname "NAME" create a migration with name = NAME and updates db to latest
        • .\src\infrastructure\database\helpers\applymigrations.ps1 -environment "Production" -connectionstring "CONNECTION_STRING" updates 'Production' db to the latest migration
        • .\src\infrastructure\database\helpers\applymigrations.ps1 -reset drops current db and applies latest migration
      • View .\src\infrastructure\database\helpers\applymigrations.ps1 for more info
    • Development (local environment)
      • $env:ASPNETCORE_ENVIRONMENT="Development"
      • dotnet ef migrations add MIGRATION_NAME --context LocalAnimalRescueContext --output-dir Migrations/SqliteMigrations --project .\src\modules\animalrescue.mainmodule\animalrescue.mainmodule.dal\animalrescue.mainmodule.dal.csproj --startup-project .\src\animalrescue.web\animalrescue.web.csproj
      • dotnet ef database update --context LocalAnimalRescueContext --project .\src\modules\animalrescue.mainmodule\animalrescue.mainmodule.dal\animalrescue.mainmodule.dal.csproj --startup-project .\src\animalrescue.web\animalrescue.web.csproj
    • Production (sql server db) make sure to replace MIGRATION_NAME and CONNECTION_STRING
      • $env:ASPNETCORE_ENVIRONMENT="Production"
      • dotnet ef migrations add MIGRATION_NAME --context AnimalRescueContext --output-dir Migrations/SqlServerMigrations --project .\src\modules\animalrescue.mainmodule\animalrescue.mainmodule.dal\animalrescue.mainmodule.dal.csproj --startup-project .\src\animalrescue.web\animalrescue.web.csproj
      • dotnet ef database update --context AnimalRescueContext --project .\src\modules\animalrescue.mainmodule\animalrescue.mainmodule.dal\animalrescue.mainmodule.dal.csproj --startup-project .\src\animalrescue.web\animalrescue.web.csproj --connection "CONNECTION_STRING"
  • CI/CD:

  • Help

  • Branch Naming Conventions

    • feature/FEATURE_NAME/issue-ISSUE_NUMBER (this is the main way to merge PRs into main)
    • users/USER_NAME/ANYTHING (this is a last resort in case you are working on something and need to push)

About

This is an animal rescue app based on Orchard Core

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •