Emmanuel-Aggrey / tdhc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

THE DEVINE HEALERS CHURCH MOBOLE NO. 1 ASSEMBLY

Django Backend api for the TDHC app. Maintenance > contributions welcome

Requirements (Prerequisites)

Tools and packages required to successfully install this project. For example:

Installation (DEVELOPMENT SETUP)

  • Create a .env file in root directory to override all environmental variables

  • You can also set the variable as system variables

A step by step list of commands.

$ git clone project-ul

$ python3 -m venv env

$ source env/bin/activate

$ pip install -r requirements.txt

$ python manage.py migrate

$ bash scripts/load_data.sh

$ python manage.py runserver_plus 7000

Installation (DOCKER SETUP)

  • Remane the .env.example file in root directory to .env

  • Ask the PM for valid cedentials and use it the update the .env file

  • Install Docker Desktop Install

A step by step list of commands.

$ git clone project-ul

$ cd lead

$ docker-compose up --build -d

  • Visit localhost:7000 in your browser

How View the Swagger documentation

  • Visit localhost:7000/admin

  • Login with admin@local.com:me@1231)

  • Visit localhost:7000/swagger

Features

  • Account registration

Running the tests

Give code examples as:

  • $ python manage.py test

Test account

admin admin@demo.com:asdf1234

clent client@demo.com:asdf1234

Tech Stack / Built With

  1. Django - The Python framework
  2. Postgres - The Database

Authors

Emmanuel Nartey – aggrey.en@gmail.com

You can find me here at: Github LinkedIn

License

This project is licensed under the MIT License - see the LICENSE.md file for details

MIT © TDHC

About


Languages

Language:JavaScript 62.8%Language:CSS 26.1%Language:Python 10.6%Language:HTML 0.6%