{"id":19792828,"url":"https://github.com/devpro/ecorp-backend-demo","last_synced_at":"2025-06-18T10:33:38.149Z","repository":{"id":145399143,"uuid":"518122345","full_name":"devpro/ecorp-backend-demo","owner":"devpro","description":"Demonstration of a simple backend for E Corp (fake company)","archived":false,"fork":false,"pushed_at":"2022-12-29T14:00:23.000Z","size":37,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-02-28T15:29:27.054Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devpro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-26T15:43:56.000Z","updated_at":"2023-03-05T00:12:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"0fd8d4d8-224e-4820-9146-7b15c1a32f99","html_url":"https://github.com/devpro/ecorp-backend-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devpro/ecorp-backend-demo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fecorp-backend-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fecorp-backend-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fecorp-backend-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fecorp-backend-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devpro","download_url":"https://codeload.github.com/devpro/ecorp-backend-demo/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devpro%2Fecorp-backend-demo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260536035,"owners_count":23024286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T07:08:04.799Z","updated_at":"2025-06-18T10:33:33.122Z","avatar_url":"https://github.com/devpro.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# E Corp backend demo application\n\n[![GitLab Pipeline Status](https://gitlab.20.101.158.124.sslip.io/ecorp/ecorp-backend-demo/badges/develop/pipeline.svg)](https://gitlab.20.101.158.124.sslip.io/ecorp/ecorp-backend-demo/-/pipelines)\n[![Quality Gate Status](https://sonarqube.20.101.158.124.sslip.io/api/project_badges/measure?project=ecorp_ecorp-backend-demo\u0026metric=alert_status\u0026token=4dddb4d0fa579d83231a24bfff069fa3ea3c71ae)](https://sonarqube.20.101.158.124.sslip.io/dashboard?id=ecorp_ecorp-backend-demo)\n\nDemonstration of a simple backend for E Corp (from [Mr Robot](https://en.wikipedia.org/wiki/Mr._Robot)). It is a web service application (a REST API to be precise), written in C#, using .NET Framework (free, open source, cross platform).\n\n## How to run\n\n### Container image\n\nContainer images are automatically built and available on [Harbor](https://harbor.20.101.158.124.sslip.io/harbor/projects/2/repositories/ecorp-backend-demo/artifacts-tab).\n\nExecute the following command line to run a container locally.\n\n```bash\ndocker run -it --rm -p 9001:80 -e ASPNETCORE_ENVIRONMENT=Development -e AllowedOrigins__0=http://localhost:4200 -e Application__IsHttpsRedirectionEnabled=false -e Application__IsSwaggerEnabled=true harbor.20.101.158.124.sslip.io/ecorp/ecorp-backend-demo:1.0.17\n```\n\nNavigate to [localhost:9001/swagger](http://localhost:9001/swagger) to open Swagger page to view the REST API definitions and do API calls.\n\n### Helm chart\n\nThe best way to deploy and run this application is by executing the workload as containers orchestrated Kubernetes, thanks to the [Helm chart](https://devpro.github.io/helm-charts/).\n\nExecute the following command lines to deploy the definitions to your Kubernetes cluster.\n\n```bash\n# adds devpro Helm repository\nhelm repo add devpro https://devpro.github.io/helm-charts\n\n# installs E Corp applications\nhelm install ecorp-demo\n```\n\n## How to build\n\n### Requirements\n\n* .NET SDK\n* Docker (or Podman)\n* Visual Studio 2022 or any other IDE\n\n### Build \u0026 test\n\nExecute the following command lines to build and test the solution.\n\n```bash\n# builds the solution\ndotnet build\n\n# executes the tests via xUnit (not implemented for the moment)\ndotnet test\n```\n\n### Run the development server\n\nExecute the following command line to run the API.\n\n```bash\ndotnet run --project src/WebApi\n```\n\nNavigate to [localhost:7148/swagger](https://localhost:7148/swagger).\n\n### Run in a local container\n\nExecute the following command line to build and run the API in a container.\n\n```bash\ndocker build . -t ecorp-backend-demo -f src/WebApi/Dockerfile\ndocker run -it --rm -p 9001:80 -e ASPNETCORE_ENVIRONMENT=Development -e AllowedOrigins__0=http://localhost:4200 -e Application__IsHttpsRedirectionEnabled=false -e Application__IsSwaggerEnabled=true ecorp-backend-demo\n```\n\nNavigate to [localhost:9001/swagger](http://localhost:9001/swagger) to open Swagger page to view the REST API definitions and do API calls.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevpro%2Fecorp-backend-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevpro%2Fecorp-backend-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevpro%2Fecorp-backend-demo/lists"}