Skip to content

alfarih31/clinic-appointment-app

Repository files navigation

Clinic Appointment Apps

An example applications of DIHub and DIHub-CQRS utilization

Prerequisites

  1. Python v3.11
  2. Make
  3. Poetry
  4. Docker v20.10.8 (Optional)

Set-up

Install Dependencies

Configure

Generate JWT RSA

make gen-jwt-rsa

Configure API

  1. Copy .env.example as .env
cp .env.example .env
  1. Below is available configurations:
Key Description Values Required
SERVER_HOST Server hostname String, Default: 0.0.0.0
SERVER_PORT Server port Int, Default: 8080
DB_DRIVER SQLAlchemy DB Driver String
DB_USER DB User String
DB_PASSWORD DB Password String
DB_HOST DB Host String
DB_PORT DB Port Int
DB_DATABASE DB Database String
BCRYPT_SALT_ROUNDS BCrypt Salt Rounds Int
JWT_RSA_FILE JWT RSA secret locations String
JWT_ISSUER JWT ISS String
JWT_RSA_ALG JWT RSA Algorithm String
JWT_AUDIENCE JWT AUD String
JWT_EXPIRES JWT Expires in seconds Int

Development

Local Development

Run The application

Using Makefile to setup development

  1. Setup Dev
make setup-dev
  1. Run development runtime
make dev

Production

Using Docker

  1. Build the image
docker build -t clinic-appointment-app:latest .

Contributors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published