Skip to content

olujedai/esusu

Repository files navigation

Esusu API

Esusu societies finally digitised. Learn more about Esusu here

Getting Started

  1. Make sure you have the following installed on your machine:
  • Git: Windows, Mac. (Linux: Please install using your system's package manager)
  • Docker: Windows, Mac, Linux (ensure you have the latest version).
  1. Ensure that docker is running on your machine by running docker run hello-world

  2. Clone (copy to your local machine) the repository using the command: git clone git@github.com:olujedai/esusu.git

  3. Navigate to the esusu folder (cd esusu)

  4. Set up the environment variables by running cp env.sample .env and modify the defaults.

  5. Build the backend and datebase images using docker-compose build. It will take a fair bit of time the first time you do it, subsequently it will be much faster. If you get any errors, please get in touch.

  6. Launch the containers using docker-compose up .

  7. The first time you run the app, you may need to run the migrations to ensure that all the tables are created in the database. While the app is running (after following the previous step), run the following in another terminal/command prompt: docker-compose run esusu_api python esusu/manage.py migrate

Endpoint Documention

Documentation of how to use the endpoints is found here

Running Tests

  • pipenv install -d
  • pipenv shell
  • cd esusu/esusu
  • python manage.py tests

Class Diagram

Esusu class diagram

Technology Stack