This project provides a backend service for a cartography system. It exposes APIs for managing and accessing cartographic data using FastAPI and PostgreSQL.
- Python:
3.9 - Virtual environment (optional but recommended)
-
Clone the repository
git clone https://github.com/SoftGuar/cartographie_service.git cd cartographie_service -
Create and activate a virtual environment
python3.9 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
create a ".env" file and paste in it the content you find in the ".env.example" file
To start the FastAPI server:
python main.pyThen open your browser and go to:
- Swagger UI: http://localhost:8000/docs
To test the API endpoints, use:
- Swagger UI: http://localhost:8000/docs
- Postman or any other API client