Coder Social home page Coder Social logo

medicine_center's Introduction

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: [email protected]
    password: 123456
  Patient:
    email: [email protected]
    password: 123456

DEBUG:

medicine_center's People

Contributors

zelenyid avatar nazarkostetskiy avatar muknta avatar deepwebhoax avatar

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.