SPAR Mapper API
This page provides comprehensive documentation for the installation of spar-mapper-api, a FastAPI-based service designed for data mapping within the Social Payments Account and Registry (SPAR) system.
Installation
Prerequisites
Any machine running Linux (e.g., Ubuntu), macOS, or Windows
Python3.10 or later
Git
PostgreSQL
virtualenv
Python Dependencies
The following dependencies are managed in the installation steps below.
Steps to Install
Clone the repository
Navigate to the project root
Create a virtual environment with Python 3
Activate the virtual environment
Install the necessary dependencies
Configure database credentials and other environment variables in the `.env` file
Run migrations to set up the database:
Quick Start
Start the development server
Access Swagger API Documentation
Configuration
Environment Variables
Set the following environment variables to configure the `spar-mapper-api`:
Testing
To run unit tests with pytest
:
Contributing
Contribution guidelines are available here.
Last updated