SnB.001
会有两个版本:
- Standalone版本,主要就是本地记录存取整理相关的;
- Server版本,会增加AI推荐相关的内容。
一个简单的笔记应用,支持用户注册、登录、笔记管理和标签管理功能。
-
导航到
backend目录 -
创建虚拟环境并安装依赖
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r requirements.txt
-
下载 MongoDB Community Server: https://www.mongodb.com/try/download/community 下载对应的安装程序
-
导航到
note_app目录,运行后端服务器python .\backend\app.py
- 导航到 frontend 目录
- 创建虚拟环境并安装依赖
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate` pip install -r requirements.txt
- 运行前端应用
python app.py
使用 dash-mantine-components 需要注意:
Dash Mantine Components is based on REACT 18. You must set the env variable REACT_VERSION=18.2.0 before starting up the app.
npm install react@18.2.0 react-dom@18.2.0
如果安装失败可以尝试使用其他 npm 镜像源
npm config set registry https://registry.npmmirror.com/