- MONGODB_PASSWORD = <MONGODB_PASSWORD>
- 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
-
- 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>)
* sudo docker build -t medicine_center .
* docker run --env MONGODB_PASSWORD=$MONGODB_PASSWORD -d --name medicine_center -p 80:80 medicine_center
* sudo docker-compose -f "docker-compose.yml" up -d --build
* sudo docker-compose -f "docker-compose.yml" down
- pipenv run uvicorn run:app
- pipenv run uvicorn run:chat
Doctor: email: efippawonn-3466@yopmail.com password: 123456 Patient: email: ofabiqika-4056@yopmail.com password: 123456