Skip to content

lbbit/KeepFit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KeepFit

本系统能够允许多用户记录自己的健身信息,并且可以互相浏览体重图表。

健康记录中心

web服务器使用python的flask框架

数据库使用mongodb


启动

方法一:容器部署(推荐)

  1. 启动容器
# 前台启动
docker-compose up
# 后台启动
docker-compose up -d
# 修改代码后重新编译启动
docker-compose up --build
# 查看log
docker-compose logs -f
  1. 访问:http://localhost:5000

方法二:手动启动

  1. 安装python3.7和依赖
pip install -r requirements.txt
  1. 安装mongodb数据库

  2. 启动mongodb服务

  3. service mongod start

  4. 修改runweb.py文件中mongodb的地址为localhost

client = MongoClient('localhost', 27017)
  1. 后台运行健康记录中心web服务器,并将打印日志重定向到fit.log文件中
nohup python ./runweb.py > ./fit.log 2>&1 &
  1. 访问:http://localhost:5000

加油!你是最胖的!!!

About

健康记录中心

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published