An opinionated yet customizable RESTful CRUD APIs for generic business domain services, rename/copy-paste the folders to suit your needs.
-
Create A PostgreSQL Instance, using docker and expose ports 5432
./postgres.sh # docker daemon should be running
-
Export env
export POSTGRES_URI="postgresql://postgres:[email protected]:5432/postgres"
-
Run a particular microservice (eg domain)
cd services/domain pipenv install # for first time setup pipenv run python main.py # or pipenv run uvicorn main:app --reload # for hot reload
-
Endpoint available at
http://0.0.0.0:8000/api/v1/domain
cd services
docker-compose up
Endpoints available at
http://0.0.0.0:7000/api/v1/domain
http://0.0.0.0:8000/api/v1/patient
Maintainer -