AIHealth is an app recording your health data, including base information(height,weight,ABO,etc.), sports data, medical record, etc. The app will analyse these data to help you improve your body health.
export CONFIG_URL="config/config.yaml" && go run cmd/server/main.go
-
travis CI
Trigger bygit push origin master
, Docker image generated will be pushed to dockerhub. -
Docker deployment
docker pull tzaiyang/aihealth:$tag docker run --rm --name aihealth -d -p 10086:10086 -v $config_file_paths:/app/config.yaml tzaiyang/aihealth:$tag
-
Requirements
-
Framework maybe to be used
- elastics
-
API Documents
- Preview openapi.yaml with OpenAPI Online Editor or
OpenAPI VS Code pludgin
- Preview openapi.yaml with OpenAPI Online Editor or
-
mongo white ip list:(connection refused)
sudo mongod --bind_ip_all
or edit param in/etc/mongod.conf
then start mongod withsystemctl start mongod
-
mongod start with error "child process failed, exited with error number 1"
sudo chmod 777 /var/log/mongodb/
-
mongo data export
# export from mongodb $ mongoexport -d AIHealth -c medicals -o AIHealth_medicals.dat # import to remote host. $ mongoimport -h aiwac.net:27017 -d AIHealth -c medicals AIHealth_medicals.dat