Skip to content

The aims the platform is to improve the oral health of the population by centralizing and articulating the medical-dental clinical record with its various stakeholders, from the dentist to the patient.

Notifications You must be signed in to change notification settings

promptequation/teethwallet

Repository files navigation

OeHMP - Oral e-Health Monitoring Platform

How to develop • Vue.js/Nuxt.js Frontend

• 16 Mar 2022 •••

  1. Install Docker-compose (1.29.00 works)

  2. Go to the 'oehmp' folder and run containers:

cp backend/db.sqlite3_empty backend/db.sqlite3
cp env.dev.localhost env.dev
docker-compose -f dev.yml --env-file env.dev up
  1. Run the shell in Api container . This shell is bash terminal for django backend controll
docker-compose -f dev.yml exec api /bin/bash

and then inside the shell init database and fill it with testdata:

python manage.py makemigrations
python manage.py makemigrations api
python manage.py makemigrations chat
python manage.py makemigrations common
python manage.py makemigrations appointment
python manage.py makemigrations auth_extend
python manage.py migrate
python manage.py sample
  1. The Django admin is available at localhost:8080/admin_b/ after the restart. Google Chrome may not work correctly in Django Admin, try to use Opera or another browser.

  2. The Vue.js/Nuxt frontend is available at localhost:3000 after a few minutes, (when the Nuxt server would be compiled)

  3. Use this commands:

docker-compose -f dev.yml logs -f api
docker-compose -f dev.yml logs -f frontend

for api and frontend containers resp. to see logs and debug the application

Install

--

Using docker-compose

docker-compose up -d
docker exec -it oehealth_api_1 python manage.py migrate
docker exec -it oehealth_api_1 python manage.py createsuperuser --username=dd [email protected]
(enter password twice)

navigate to:
- http://127.0.0.1:8000/admin
- http://127.0.0.1:8000/graphql

Frontend developers can just start the backend

docker-compose up --build api worker

Backend developers can just start the frontend

docker-compose up --build frontend

Production

# Everybody up
docker-compose -f docker-compose-staging.yml up -d
# Just trigger certbot
docker-compose -f docker-compose-staging.yml run certbot -it certonly --webroot \
                --webroot-path=/var/www/html --email [email protected] --agree-tos \
                --no-eff-email --staging -n  -d oehealth.promptequation.com

Seeding Data

docker exec -it oral-e-health_api_1 python manage.py loaddata /app/demo_data.json

About

The aims the platform is to improve the oral health of the population by centralizing and articulating the medical-dental clinical record with its various stakeholders, from the dentist to the patient.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published