An example applications of DIHub and DIHub-CQRS utilization
- Python
v3.11 - Make
- Poetry
- Docker
v20.10.8(Optional)
make gen-jwt-rsa- Copy .env.example as .env
cp .env.example .env- 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 | ✓ |
Using Makefile to setup development
- Setup Dev
make setup-dev- Run development runtime
make dev- Build the image
docker build -t clinic-appointment-app:latest .- Alfarih Faza [email protected]