{"id":15410254,"url":"https://github.com/giorgi/maui-dotnetconf-sample","last_synced_at":"2025-04-19T07:35:48.342Z","repository":{"id":207456714,"uuid":"718326354","full_name":"Giorgi/Maui-DotNetConf-Sample","owner":"Giorgi","description":"Maui Spatial Data Sample App","archived":false,"fork":false,"pushed_at":"2023-11-21T08:20:36.000Z","size":1187,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-29T06:51:36.703Z","etag":null,"topics":["efcore","maui","net-core","npgsql","postgresql","spatial-data"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Giorgi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-13T21:14:51.000Z","updated_at":"2024-12-06T13:51:17.000Z","dependencies_parsed_at":"2023-11-21T09:32:03.878Z","dependency_job_id":null,"html_url":"https://github.com/Giorgi/Maui-DotNetConf-Sample","commit_stats":{"total_commits":22,"total_committers":2,"mean_commits":11.0,"dds":"0.13636363636363635","last_synced_commit":"a8f5836a9ce21b94faa6ea44488960f19020d7be"},"previous_names":["giorgi/maui-dotnetconf-sample"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Giorgi%2FMaui-DotNetConf-Sample","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Giorgi%2FMaui-DotNetConf-Sample/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Giorgi%2FMaui-DotNetConf-Sample/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Giorgi%2FMaui-DotNetConf-Sample/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Giorgi","download_url":"https://codeload.github.com/Giorgi/Maui-DotNetConf-Sample/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249638252,"owners_count":21304305,"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":["efcore","maui","net-core","npgsql","postgresql","spatial-data"],"created_at":"2024-10-01T16:43:44.561Z","updated_at":"2025-04-19T07:35:48.307Z","avatar_url":"https://github.com/Giorgi.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Maui DotNetConf 2023 Spatial Data Sample App\n\n## Overview\n\nThis is a sample app and backend code for my [Spatial Data with Entity Framework Core and .NET MAUI](https://www.dotnetconf.net/agenda#536258) session.\n\nThe code demonstrates how to work with spatial data with EF Core and ASP.NET and how to use MAUI Map control.\n\nThe projects use the following libraries:\n\n - [NetTopologySuite](https://github.com/NetTopologySuite/NetTopologySuite)\n - [NetTopologySuite.IO.GeoJSON](https://github.com/NetTopologySuite/NetTopologySuite.IO.GeoJSON)\n - [Npgsql.EntityFrameworkCore.PostgreSQL](https://github.com/npgsql/efcore.pg) \u0026\u0026 [Npgsql.NetTopologySuite](https://github.com/npgsql/npgsql)\n - [.NET MAUI Community Toolkit](https://github.com/CommunityToolkit/Maui)\n - [.NET Community Toolkit](https://github.com/CommunityToolkit/dotnet)\n - [Refit](https://github.com/reactiveui/refit)\n\n## Running the projects locally\n\nThere are several steps required to run the project locally\n\n### Set up PostgreSQL database\nThe backend project uses PostgreSQL. Once you set up the PostgreSQL server, [create a spatial database](https://postgis.net/workshops/en/postgis-intro/creating_db.html) \nand [restore data.](https://postgis.net/workshops/en/postgis-intro/loading_data.html). Next, run [scripts.sql](https://github.com/Giorgi/Maui-DotNetConf-Sample/blob/main/SpatialData.Api/scripts.sql) from the project. Finally, update the connection string in the project.\n\n### Get a Google Maps API key\nTo use the Map control follow the [Platform configuration](https://learn.microsoft.com/en-us/dotnet/maui/user-interface/controls/map?view=net-maui-8.0#platform-configuration) steps from the official documentation\n\n### Set service endpoint\nIf you use a different port or want to run the app on a local device, you must update the service base url in `MauiProgram.cs`\n\n![Neighborhood](/Screenshots/Neighborhood.png \"Neighborhoods\")\n\n![Nearest Subways - Map](/Screenshots/Nearest%20Subways%20-%20Map.png \"Nearest Subways - Map\")\n\n![Nearest Subways - List](/Screenshots/Nearest%20Subways%20-%20List.png \"Nearest Subways - List\")","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiorgi%2Fmaui-dotnetconf-sample","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiorgi%2Fmaui-dotnetconf-sample","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiorgi%2Fmaui-dotnetconf-sample/lists"}