zelenyid / medicine_center

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set env variables:

  • MONGODB_PASSWORD = <MONGODB_PASSWORD>

Install:

  • git clone https://github.com/NazarKostetskiy/medicine_center
  • cd medicine_center
  • pipenv install
  • change baseUrl in config.dart in frontend directory to yours and build flutter project
  • Setup storage file:
    • Select or create a Cloud Platform project
    • Enable billing for your project
    • Enable the Google Cloud Storage API
    • Create new bucket
      • Select in the navigation menu "Storage"
      • In new page select "Create Bucket"
      • Setup following instruction and your finance and put "Create". In the result you create bucket for storage files
      • In config.py file replace in this constant on your bucket name or you can name your bucket 'disease-history-files' and not to change DISEASE_HISTORY_FILES_NAME = <BUCKET_NAME>
    • Download Service Account Key (This file include the information related to the project)
      • Select in the navigation menu "APIs & Services" -> Credential
      • In new page select "Create Credentials" -> "Service Account"
      • Setup your service account and put "Create"
      • In the list of credential -> service accounts select created account
      • Select "Add Key" -> "Create new key"
      • In the modal box select "JSON" Key type and put "Create"
    • Move downloaded file to start direction of the project (near main.py)
    • Rename the file on "keys_service_account.json" or you can change on your file in the config.py JSON_KEYS_SERVICE_ACCOUNT = os.path.join(BASE_DIR, <FILE_NAME>)

Docker

Build:

  * sudo docker build -t medicine_center .

Run container:

  * docker run --env MONGODB_PASSWORD=$MONGODB_PASSWORD -d --name medicine_center -p 80:80 medicine_center

Docker compose

Build and up:

  * sudo docker-compose -f "docker-compose.yml" up -d --build

Down:

  * sudo docker-compose -f "docker-compose.yml" down

Run server:

  • pipenv run uvicorn run:app
  • pipenv run uvicorn run:chat

Test users

  Doctor:
    email: efippawonn-3466@yopmail.com
    password: 123456
  Patient:
    email: ofabiqika-4056@yopmail.com
    password: 123456

DEBUG:

About


Languages

Language:JavaScript 91.1%Language:Dart 4.8%Language:Python 2.8%Language:C++ 0.8%Language:CMake 0.3%Language:HTML 0.1%Language:C 0.1%Language:Swift 0.0%Language:Dockerfile 0.0%Language:Kotlin 0.0%Language:Objective-C 0.0%