Git Product home page Git Product logo

promptequation / teethwallet Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 6.24 MB

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.

Home Page: https://teethwallet.com/

JavaScript 17.59% HTML 0.96% Java 0.09% Swift 0.24% Ruby 0.07% Vue 52.79% TypeScript 1.80% SCSS 1.51% Dockerfile 0.23% Python 24.69% Shell 0.01% CSS 0.01%
dental-clinic medicine-applications patient-data

teethwallet's Introduction

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

teethwallet's People

Contributors

dduarte-odoogap avatar eesteves-odoogap avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

chandraknight

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.