{"id":19835057,"url":"https://github.com/equinor/procosys-preservation-api","last_synced_at":"2025-05-01T17:32:40.986Z","repository":{"id":38982692,"uuid":"213847513","full_name":"equinor/procosys-preservation-api","owner":"equinor","description":"REST API for the preservation module in Project Completion System (ProCoSys (PCS))","archived":false,"fork":false,"pushed_at":"2024-10-24T09:30:01.000Z","size":5326,"stargazers_count":3,"open_issues_count":4,"forks_count":2,"subscribers_count":11,"default_branch":"master","last_synced_at":"2024-10-25T00:47:23.808Z","etag":null,"topics":["csharp","preservation","procosys"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/equinor.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":"2019-10-09T07:14:52.000Z","updated_at":"2024-10-22T09:35:11.000Z","dependencies_parsed_at":"2024-10-28T11:54:41.577Z","dependency_job_id":"7564a3c3-62c4-4d84-a338-5cf2d15f3486","html_url":"https://github.com/equinor/procosys-preservation-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2Fprocosys-preservation-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2Fprocosys-preservation-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2Fprocosys-preservation-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equinor%2Fprocosys-preservation-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/equinor","download_url":"https://codeload.github.com/equinor/procosys-preservation-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224270291,"owners_count":17283649,"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":["csharp","preservation","procosys"],"created_at":"2024-11-12T12:06:26.470Z","updated_at":"2025-05-01T17:32:40.974Z","avatar_url":"https://github.com/equinor.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pcs-preservation-api\nREST API for the preservation module in Project Completion System (ProCoSys (PCS)) using ASP.NET and Entity Framework.\n\n## Notes\n\n### Secrets\nBefore running the application, some settings need to be set. These are defined in appsettings.json. To avoid the possibility to commit secrets, move parts of the configuration to the secrets.json file on your computer.\nTypical settings that should be moved to secrets.json are:\n* AD IDs\n* Keys\n* Local URLs\n* Other secrets\n\n### Environment\nSet the runtime environment by setting the environment variable ASPNETCORE_ENVIRONMENT on your machine to one of the following:\n* Development\n* Test\n* Production\n\nIf this variable is not set, it will default to Production.\n\n### Migration\nWhen running in development environment, the database is auto-migrated on application startup. This can be changed using the setting in appsettings.development.json.\n\n### Seeding\nThe datebase can be seeded with test data. To do this, enable the feature in appsettings.development.json and start the application.\n\u003eNote: This will run every time the application starts. To avoid multiple seedings, disable the feature after the application has started.\n\n## Visual Studio\n### Set secrets\n To open secrets.json, right-click on the startup project and select 'Manage User Secrets'.\n### Run\n\nChoose to run as *Equinor.ProcoSys.Preservation.WebApi* in the dropdown menu and hit F5.\n\n## Command line\n### Set secrets\nIn folder\n```\nsrc\\Equinor.ProCoSys.Preservation.WebApi\n```\nSet secrets using\n```console\ndotnet user-secrets \"\u003ckey\u003e\" \"\u003cvalue\u003e\"\n```\n### Run\nIn folder\n```\nsrc\\Equinor.ProCoSys.Preservation.WebApi\n```\nrun\n```console\ndotnet run\n```\n\n## Docker\n### Set secrets\nUse either Visual Studio or Command line. Docker-compose is set up to mount the secrets file into the container.\n### Run\nIn folder\n```\nsrc\\\n```\nrun\n```console\ndocker-compose -f .\\Docker-compose.yml -f .\\Docker-compose.development.yml up\n```\n\n## Environment variables\nThese need to exists in the docker container to be able to authenticate as service priciple\n- AZURE_CLIENT_ID\n- AZURE_TENANT_ID\n- AZURE_CLIENT_SECRET\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequinor%2Fprocosys-preservation-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequinor%2Fprocosys-preservation-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequinor%2Fprocosys-preservation-api/lists"}