https://docs.google.com/document/d/1RznbHfKTjlAOrSwaLGCCqWOgkG-zW6eJp07IbI-E5uA/edit
Board: https://github.com/orgs/csr-voluntary-assistant/projects/1
https://xd.adobe.com/view/a7e4034d-b216-417f-677d-c361a8d14adf-d1d5/
Open the cmd
inside src/Voluntariat/ClientApp
then run the following commands:
npm install
ng build
Open the cmd
inside src/Voluntariat
then run the following commands:
dotnet build
appsettings.Development.json
file by copying appsettings.json
and leave in it only DefaultConnection
DefaultConnection
to your connection stringPackage Manager Console
and run update-database
Open the cmd
inside src/Voluntariat/ClientApp
then run the following command:
npm build
Open the cmd
inside src/Voluntariat
then run the following command:
dotnet run
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"
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
Build docker compose
docker-compose build
Run docker compose
docker-compose up