Skip to content

Mini OpenLayers Web API is a web application built using .NET 6.0, OpenLayers, and PostgreSQL. It allows users to add and delete locations, and display them on a map.

License

Notifications You must be signed in to change notification settings

selinvuslat/mini-openlayers-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mini OpenLayers Web API

Mini OpenLayers Web API is a web application built using .NET 6.0, OpenLayers, and PostgreSQL. It allows users to add and delete locations, and display them on a map.

Features

  • Location Management: Users can add new locations, delete existing locations, and view all the locations on the map.
  • Map Display: The application utilizes OpenLayers to display the locations on an interactive map.
  • REST API: The application's API, located at http://localhost:5000/api/location, provides the following functions:
    • GET: Retrieve all locations.
    • POST: Add a new location.
    • PUT: Update an existing location.
    • DELETE: Remove a location.

Requirements

  • .NET 6.0 SDK installed on your machine.
  • PostgreSQL database server.
  • OpenLayers library for map functionality.

Installation

  1. Clone the repository or download the project files.
git clone https://github.com/selinvuslat/mini-openlayers-api.git
  1. Update the database connection settings.

    • Open the appsettings.json file.
    cd mini-openlayers-app
    nano appsettings.json
    • Update the PostgreSQL connection string with your database information.
  2. Build and run the application.

dotnet run
  1. Access the application in your web browser.
http://localhost:5000

Usage

  1. Launch the Mini OpenLayers Application in your web browser.
  2. Click on the map to add a new location. Provide the necessary details such as name, coordinates, etc.
  3. Existing locations will be displayed on the map. Click on a location to view its details.
  4. To delete a location, click on the delete button associated with the location on the map or in the details view.
  5. Use the API endpoints at http://localhost:5000/api/location to interact with the locations programmatically.

License

This project is licensed under the MIT License. For more information, see the LICENSE file.

Issues, Feature Requests or Support

Please use the New Issue button to submit issues, feature requests or support issues directly to me. You can also send an e-mail to [email protected].

About

Mini OpenLayers Web API is a web application built using .NET 6.0, OpenLayers, and PostgreSQL. It allows users to add and delete locations, and display them on a map.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages