Skip to content

leo8198/t20med-api

Repository files navigation

T20Med API

Build status

T20Med API for the mobile and web applications

Available services:

  • Authentication
  • Sign up
  • Scheduling appointments
  • Payment system
  • Save file exams
  • Digital signing for prescriptions

Deploy in local environment

Copy the .env.example to .env:

cp .env.example .env

Use docker compose:

docker compose up

Testing

For running the tests locally using pytest just start the container, change the database host to localhost instead of postgres and run:

bash tests.sh

Documentation

Database schema

The database schema can be found here.

API documentation

API documentation can be found here.

Production architecture

Production architecture diagram can be found here

Deploy in production

It's recommended to use docker swarm and get the image from the company AWS ECR.

docker stack deploy -c docker-compose.prod.yml t20med-api

Logging

Access sentry dashboard

Create infrastructure using Terraform

You can create an cloud infrastructure using Terraform. The code will create the following components in AWS:

  • VPC with one public subnet and one private subnet
  • EC2 instances
  • Application Load Balancer (ALB)
  • Auto Scaling and target groups
  • Security Groups
  • S3 bucket
  • RDS Postgres database

About

T20Med API for the mobile and web applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published