{"id":15002416,"url":"https://github.com/al-mi-pio/alpimi-planner-backend","last_synced_at":"2025-10-15T20:22:45.124Z","repository":{"id":252465186,"uuid":"840512359","full_name":"al-mi-pio/alpimi-planner-backend","owner":"al-mi-pio","description":"A backend .NET repo for the Alpimi Planner","archived":false,"fork":false,"pushed_at":"2025-10-02T18:05:31.000Z","size":1182,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"develop","last_synced_at":"2025-10-02T20:13:47.214Z","etag":null,"topics":["cqrs","csharp","dotnet","entity-framework","sql-server"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/al-mi-pio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-09T22:09:51.000Z","updated_at":"2025-10-02T18:05:33.000Z","dependencies_parsed_at":"2024-08-10T00:29:11.859Z","dependency_job_id":"7a103203-81b4-412a-8f86-cde00cd99d0a","html_url":"https://github.com/al-mi-pio/alpimi-planner-backend","commit_stats":{"total_commits":67,"total_committers":4,"mean_commits":16.75,"dds":"0.23880597014925375","last_synced_commit":"bb8fbe4cffab45e941d4837b06b899617f1615ef"},"previous_names":["al-mi-pio/alpimi-planner-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/al-mi-pio/alpimi-planner-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al-mi-pio%2Falpimi-planner-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al-mi-pio%2Falpimi-planner-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al-mi-pio%2Falpimi-planner-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al-mi-pio%2Falpimi-planner-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/al-mi-pio","download_url":"https://codeload.github.com/al-mi-pio/alpimi-planner-backend/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/al-mi-pio%2Falpimi-planner-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279110907,"owners_count":26105907,"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","status":"online","status_checked_at":"2025-10-15T02:00:07.814Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["cqrs","csharp","dotnet","entity-framework","sql-server"],"created_at":"2024-09-24T18:50:11.671Z","updated_at":"2025-10-15T20:22:45.118Z","avatar_url":"https://github.com/al-mi-pio.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Alpimi planner backend\n\n\u003e A WEB API created in .NET for the Alpimi planner  \n\u003e _[Test Plan](./Test/Plan/)_\n\n## Requirements\n\n- [.NET SDK 8](https://dotnet.microsoft.com/en-us/download/dotnet/8.0)\n\n- [SQL Server Developer](https://www.microsoft.com/pl-pl/sql-server/sql-server-downloads)\n\n- `Recommended` [Visual Studio Community 2022](https://visualstudio.microsoft.com/pl/vs/community/)\n\n## Setup for development\n\n- Launch `View \u003e Server Explorer` in Visual Studio, right click `Data Connections` and `Create New SQL Server Database`:\n\n  - **Server name**: the `hostname` of your computer\n  - **Trust server certificate**: `checked`\n  - **New database name**: `provide_any_name_here`\n\n- After a successful connection, right click the database, select `Properties` and copy the connection string\n\n- Create a `.env` file inside the root of the project containing:\n\n```sh\nCONNECTION_STRING=\"paste_your_connection_string_here\"\nJWT_ISSUER=\"https://alpimi.pl/\"\nJWT_EXPIRE=60\nHASH_ITERATIONS=10000\nHASH_ALGORITHM=\"SHA256\"\nTEST_CONNECTION_STRING=\"paste_your_test_connection_string_here\"\nPERMIT_LIMIT=10\nTIME_WINDOW=2\nHISTORY_LIMIT=100\nJWT_KEY=\"ee3f34fbce163926832799463f316ba996fcbd7481f44aefb7eb48a4bd9e7f16\"\nKEY_SIZE=256\n```\n\n- Install Entity Framework tool globally\n\n```sh\ndotnet tool install --global dotnet-ef\n```\n\n- Update your database with the latest migration\n\n```sh\ndotnet ef database update\n```\n\n## Setup the test environment\n\n- Create a second database following steps 3 and 4 from the previous `Setup for development` section\n\n- Paste your new connection string in a new `.runsettings` file like this:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cRunSettings\u003e\n    \u003cRunConfiguration\u003e\n        \u003cEnvironmentVariables\u003e\n            \u003cTEST_CONNECTION_STRING\u003e\n                paste_your_connection_string_here\n            \u003c/TEST_CONNECTION_STRING\u003e\n        \u003c/EnvironmentVariables\u003e\n    \u003c/RunConfiguration\u003e\n\u003c/RunSettings\u003e\n```\n\n- Update your new database with the latest migration\n\n```sh\ndotnet ef database update --connection \"paste_your_connection_string_here\"\n```\n\n## Tips\n\n- Install [CSharpier](https://marketplace.visualstudio.com/items?itemName=csharpier.CSharpier), go to `Tools \u003e Options \u003e CSharpier \u003e General` and change `Reformat with CSharpier on Save` to `True`. It will save you a lot of time\n\n- Remember to add a migration whenever an entity is changed:\n\n```sh\ndotnet ef migrations add MigrationName\ndotnet ef database update\n```\n\n- And here's how to remove a migration:\n\n```sh\ndotnet ef database update PreviousMigrationName\ndotnet ef migrations remove\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal-mi-pio%2Falpimi-planner-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fal-mi-pio%2Falpimi-planner-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fal-mi-pio%2Falpimi-planner-backend/lists"}