thisAKcode / fastapi_streetart_map

0 stars 0 forks source link

fastapi for to serve geodata

Access postges db with Python Fastapi backend and render map using Leaflet.js.

Table of Contents

Installation
Usage
API Documentation
License

Installation

git clone https://github.com/thisAKcode/fastapi_streetart_map.git
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
cd app
python dbpg2.py
uvicorn main:app --reload

Usage

You can use that project to load your json data (points) into postgresql db, and then render a simple map in browser, otherwise works as a crud api. Limitation is that your data has to match the json schema of sample data.

API Documentation

wich tools to use.

  1. Frontend, leaflet, htmx.
  2. Query db using fast api, sqlalchemy/SQLModel
  3. htmx

Description of the API provided by the project will come as I work on that project, including details about the endpoints, request and response formats. Otherwise get a look at a docs generated by Swagger UI from my FastAPI code, that is pretty awesome.

Contributing

Submit bug reports in issues, welcome with pull requests. Otherwise simple clone and develop on your own.

License

https://fastapi.tiangolo.com/advanced/templates/ FastAPI Street Art Map © 2022 by Aleksei Kupiakov is licensed under CC BY 4.0