Skip to content

csr-voluntary-assistant/voluntary-assistant

Repository files navigation

Voluntariat

https://docs.google.com/document/d/1RznbHfKTjlAOrSwaLGCCqWOgkG-zW6eJp07IbI-E5uA/edit

https://euvsvirus.org

Board: https://github.com/orgs/csr-voluntary-assistant/projects/1

Adobe Xd Design mockup

https://xd.adobe.com/view/a7e4034d-b216-417f-677d-c361a8d14adf-d1d5/

Azure DevOps Pipeline

https://dev.azure.com/csr-voluntary-assistant/csr-voluntary-assistant/_build?definitionId=1&_a=summary

Installation steps

Angular installation steps

Open the cmd inside src/Voluntariat/ClientApp then run the following commands:

  • npm install
  • ng build

Web app installation steps

Open the cmd inside src/Voluntariat then run the following commands:

  • dotnet build

Setup database

  • Create appsettings.Development.json file by copying appsettings.json and leave in it only DefaultConnection
  • Change DefaultConnection to your connection string
  • Open Package Manager Console and run update-database

Starting the app

Start angular

Open the cmd inside src/Voluntariat/ClientApp then run the following command:

  • npm build

Start web app

Open the cmd inside src/Voluntariat then run the following command:

  • dotnet run

Technology stack

  • ASP.NET Core
  • MsSql Server
  • Entity Framework Core
  • Angular 9
  • Angular Material Design 9

Useful commands/templates

Azure MsSQL connection string

Data Source=tcp:{server}.database.windows.net,1433;Initial Catalog={database_name};User ID={username}@{server};Password={password}

Angular build & watch for changes(during development)

ng build --watch

Angular build in Production mode

ng build --prod

Publish ASP.NET Core App to specific folder(don't forget to build the Angular app first)

dotnet publish --configuration release --output output

Start ASP.NET Core App after publish to specific folder

dotnet run output/Voluntariat.dll

Start ASP.NET Core App in Production mode

dotnet run --environment "Production"

Docker commands

Remove images without tag

docker rmi $(docker images --filter “dangling=true” -q --no-trunc)

Build dockerfile

docker build -t core-api .

Run docker image

docker run --name core-api --env ASPNETCORE_ENVIRONMENT=Development -p 8080:80 core-api:latest

Docker compose commands

Build docker compose

docker-compose build

Run docker compose

docker-compose up