Skip to content

Latest commit

 

History

History
73 lines (57 loc) · 3.86 KB

README.adoc

File metadata and controls

73 lines (57 loc) · 3.86 KB

Mpesa Location Back-End

Table of Contents

The back-end consists of a Docker container with Python 3.10 and Django 4.2.2.

All Python package requirements are listed in Pipfile and their dependencies and associated hashes in Pipfile.lock which supports more secure verification and enables deterministic builds. Refer to Pipenv docs for more details. The initial requirements include:

If you’d like to install additional dependencies, use pipenv shell to create a virtual environment, then run pipenv install <your package> which automatically adds them to the Pipfile file and rebuild the Docker containers with make build-dev for development and make build in production.

The application uses the PostGIS database back-end by default.

Apps

There are two Django apps in this application:

There are also some tests in the mpesa_api/test.py and users/test.py files.

Linting

Black is used to automatically format and lint files. The make lint-django command checks that the project is correctly formatted.

You can set up your editor to automatically format Python files using Black following the instructions on Black’s GitHub page.

You can also use the make lint-django-fix command to automatically format all Python files in the project.

Front-end

The front-end is a React app that’s rendered through Django.

Read more about how the front-end works in the frontend README.adoc.