Skip to content

Latest commit

 

History

History
111 lines (93 loc) · 5.9 KB

README.MD

File metadata and controls

111 lines (93 loc) · 5.9 KB

Orso Arpa 2.0 Backend

Digital development in the cultural sector

ORSO Berlin develops choir and orchestra management software

CI/CD Quality Gate Status Lines of Code Maintainability Rating Security Rating Vulnerabilities Bugs Code Smells Technical Debt Reliability Rating

Deployment

Build Status

Build and Release Pipelines

Running the app using Docker

Make sure to have the latest docker version installed for your OS: Docker

Use docker-compose.yml to spin up the api, postgres and mailhog.

Start

<project-root>$ docker-compose up -d

Stop

<project-root>$ docker-compose stop

Stop & Remove persistent volumes

<project-root>$ docker-compose down -v

Monitor Logs

<project-root>$ docker-compose logs -f api

Rebuild API

Rebuilding the API on source updates.

<project-root>$ docker-compose stop api
<project-root>$ docker-compose build --no-cache api

Dotnet watch and volume src mounts are currently disabled due to performance impacts on the host system.

Development Notes: Create an entry for mssql and mail in your local hosts file. c:\windows\system32\drivers\etc\hosts or /etc/hosts -> 127.0.0.1 mail postgres

It's also possible to use "localhost". Adjust the environment settings for ConnectionStrings and SmtpServer.

Stop the docker api service - docker-compose stop api

  • Use your IDE or the dotnet cli to run it on your local machine
  • You might need to set some environment variables or edit appsettings.Development.json:
    • ASPNETCORE_ENVIRONMENT=Development
    • ConnectionStrings__PostgreSQLConnection=host=postgres;database=orso-arpa;User Id=postgres;Password=postgres;
    • EmailConfiguration__SmtpServer=mail
    • EmailConfiguration__Port=1025
    • EmailConfiguration__From=test@localhost

Starting the app locally without using docker

  • Install the .NET 8.x SDK
  • Install PostgreSQL 16.x, start a server on localhost:5432.
  • Set the PostgreSQL connection string via dotnet user-secrets (see appsettings.Development.json ConnectionStrings:PostgreSQLConnection)
  • Install and start azurite, e. g. via npm
  • Install oder configure a fake smtp server, e.g. Mailtrap
  • Set the smtp configuration via dotnet user-secrets (see appsettings.Development.json EmailConfiguration)
  • Run the project with the command dotnet run --project Orso.Arpa.Api
  • Open the Swagger UI on https://localhost:5001
  • Calling the local backend via the frontend may lead to certificate errors. In this case, run dotnet dev-certs https and dotnet dev-certs https --trust

Login

The initial database contains a single user with an admin role. You can login using the following credentials:

  • UsernameOrEmail: admin
  • Password: Pa$$w0rd

Projects

Application stack top to bottom:

Helper projects

Test projects