Web3DVisualization-BackEnd
一个 3D 可视化大屏项目, 正在建设中...
│ .gitignore
│ config.py # (TODO)不同环境的SQLALCHEMY REDIS配置
│ LICENSE
│ manage.py # 入口文件
│ README.md
│ schema.sql # 数据库结构
│
├─.docker
│ dockerfile # (TODO)
├─app
│ │ __init__.py
│ │
│ ├─base
│ │ __init__.py # Flask base blueprint
│ │
│ ├─models # flask_sqlalchemy数据库模型
│ │ Assest.py
│ │ User.py
│ │ __init__.py
│ │
│ ├─routes # 路由
│ │ admin.py
│ │ assets.py
│ │ user.py
│ │ __init__.py
│ │
│ └─utils # 工具类
│ index.py
│ status_code.py
│
└─tests # (TODO)测试文件
conftest.py
connect_db.py
data.sql
test_auth.py
test_db.py
快速启动项目
> set FLASK_APP=DVIS
> set FLASK_ENV=development
> python manage.py runserver
> export FLASK_APP=DVIS
> export FLASK_ENV=development
> python manage.py runserver
This template should help get you started developing with Vue 3 in Vite. The template uses Vue 3 <script setup>
SFCs, check out the script setup docs to learn more.
也可以本地安装 mysql
> sudo docker pull mysql
> sudo docker run -itd -p 3306:3306 --name dvis-mysql --restart always -e MYSQL_ROOT_PASSWORD=<your password> mysql:8.0.2
> sudo docker exec -it dvis-mysql bash # 进入容器
开放 SQL root 用户远程连接
> docker exec -it mysql1 mysql -uroot -p
> ALTER USER 'root'@'localhost' IDENTIFIED BY '<your password>';
> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '<your password>' WITH GRANT OPTION;
> FLUSH PRIVILEGES;