Made in accordance with Gazette of India [CG-DL-E-09082023-247951]
- Admin approved login
- Every new account's request must first be approved by the admin user (referred to as "First User").
- Only after the approval can the user use the app.
- Create, filter and view records of patients and their visits.
- Upload all the related presicriptions/reports pertaining to a particular visit safely on the cloud for later consumption and record keeping.
- Backup your data to your local machine in form of
CSVfiles whenever you wish.
- Digitized prescription maker.
- Ironing out frontend.
- Logging statistics.
- Fill out the
.env.development.localusing theenv.local.templateas your reference. - Run
development.local.sh - Frontend is available at port
3000and backend at port8080.
- The project uses Github Actions to handle deployment onto Azure, namely
azure.yml,build.yml, anddeploy.yml, with each branch in this repository referring to a different deployment. - TLS certificate provision is enabled by Automatic Https by installing & configuring Caddy in a sidecar container.
- Fill out Github variables and secrets -
- Reposiory Secrets
AZ_SUBSCRIPTION_ID- Azure Subscription IDAZ_SECURITY_CREDS- Security credentials JSON of your service principal having contributor scope set to above subscription- Run the below commands in your local machine to obtain the required JSON (replace values accordingly).
az login az ad sp create-for-rbac --name <<Service Principal Name>> --role contributor --scopes /subscriptions/<<Subscription ID>> --sdk-auth
- Run the below commands in your local machine to obtain the required JSON (replace values accordingly).
- Repository Variables
DEFAULT_ENV// Optional
- Environment Secrets
AZ_STORAGE_ACCOUNT_CONNECTION_STRING- Connection string of the storage account that would be produced after runningazure.ymlDB_FIRST_PASSWORD- First user passwordDB_PASSWORD- Database password
- Environment Variables
AZ_DOMAIN_NAME- Your custom domain name to map the FQDN withAZ_LOCATION- Location of Resource group / resourcesAZ_REGISTRY_NAME- Name for your Azure container registryAZ_RESOURCE_GROUP- Name for your resource groupAZ_STORAGE_ACCOUNT_NAME- Name for your storage accountAZ_STORAGE_ACCOUNT_SHARE- Name of file share inside the storage accountDB_DATABASE- Name of databaseDB_FIRST_USER- Name of first user
- Reposiory Secrets
- Run the workflows
azure.yml,build.yml, anddeploy.ymlin this order (Don't forget to fill the connection string value after theazure.ymlworkflow) - Add a CNAME Record in your DNS management tool mapping your provided value for
AZ_DOMAIN_NAMEwith the FQDN of your container group.