From 000be6c0766d8e19146915ca7d0f59ee20a45c27 Mon Sep 17 00:00:00 2001 From: Tim Moore Date: Thu, 13 Nov 2025 16:59:27 +0000 Subject: [PATCH] Add launch settings for VS Code using Aspire extension --- .vscode/launch.json | 11 +++++++++++ README.md | 23 ++++++++++++++++------- 2 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 .vscode/launch.json diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..94e0ef1 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,11 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "type": "aspire", + "request": "launch", + "name": "Aspire: Launch default apphost", + "program": "${workspaceFolder}" + } + ] +} \ No newline at end of file diff --git a/README.md b/README.md index c5cb4c6..0ceb3b6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Build](https://github.com/tjmoore/image-mapper/actions/workflows/build.yml/badge.svg)](https://github.com/tjmoore/image-mapper/actions/workflows/build.yml) ImageMapper is a server hosted application that processes images from a configured server folder, -extracts GPS metadata, and generates an interactive map displaying the locations of these images +extracts GPS metadata, and in a web application generates an interactive map displaying the locations of these images This application is built using .NET and leverages the Leaflet.js library for map rendering @@ -28,25 +28,33 @@ This application is built using .NET and leverages the Leaflet.js library for ma Set `ImageMapper.AppHost` as start up project and run (F5) #### Visual Studio Code -From Solution Explorer, right click `ImageMapper.AppHost` and select Debug -> Start New Instance + +Install Aspire CLI - https://learn.microsoft.com/en-us/dotnet/aspire/cli/install + +Install Aspire Extension - https://learn.microsoft.com/en-us/dotnet/aspire/fundamentals/aspire-vscode-extension + +Run with F5 or Run -> Start Debugging + +Alternatively without the Aspire CLI / Extension, from Solution Explorer right click `ImageMapper.AppHost` and select Debug -> Start New Instance #### Command Line -Run `dotnet run --project ImageMapper.AppHost` +Install Aspire CLI - https://learn.microsoft.com/en-us/dotnet/aspire/cli/install + +Run `aspire run` + +Alternatively without Aspire CLI, run `dotnet run --project ImageMapper.AppHost` This will run the .NET Aspire host, launching the components and dashboard in the browser showing the service status. Launch the front end application from imagemapper-web link -Alternatively using Aspire CLI: - -`aspire run` ## Configuration The folder for images can be configured via `appsettings.json` file in ImageMapper.Api project ```json { - "ImageFolder": "C:\\Path\\To\\Your\\Images" + "ImageFolder": "/path/to/your/images" } ``` @@ -54,6 +62,7 @@ The folder for images can be configured via `appsettings.json` file in ImageMapp - Further unit tests - Optimise image processing for large number of images and folders +- Abstract file enumeration and loading to allow varied sources not just a file folder - Caching (minimally in-memory/redis etc, future database caching of metadata. With detection of image file changes) - Configure map tile provider options - UI improvements, filtering etc