# MCloudWebApi **Repository Path**: Farmer-chong/mcloud-web-api ## Basic Information - **Project Name**: MCloudWebApi - **Description**: MCloud基于Flask,目标是做一个交互友好的私人网盘,相比于旧项目,新版优化、重新设计了代码 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-02-18 - **Last Updated**: 2022-07-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # MCloud 后端 ![](https://img.shields.io/badge/MCloud-Flask-green) ![](https://img.shields.io/badge/flask-v1.1.2-blue) ![](https://img.shields.io/badge/SQLALCHEMY-v1.1.2-blue) ![](https://img.shields.io/badge/MCloud-v1.1.2-blue) ![](https://img.shields.io/badge/python->=3.6-blue) ## Installation ```shell $ git clone https://gitee.com/Farmer-chong/mcloud-web-api.git ``` 创建&&安装虚拟环境: with venv/virtualenv + pip: ```shell $ python -m venv env # use `virtualenv env` for Python2, use `python3 ...` for Python3 on Linux & macOS $ .\env\Scripts\activate # use `env\Scripts\activate` on Windows $ source env/bin/activate # use `env\Scripts\activate` on Linux $ pip install -r requirements.txt ``` 运行MCloud: ```shell $ flask drop # 删除数据库 $ flask init # 初始化项目 $ flask run * Running on http://127.0.0.1:5000/ ``` ## Config ```powershell SECRET_KEY="Your secret key" RESET_SECRET_KEY="reset password dev key" FLASK_CONFIG="production" # production->生产环境, testing->测试环境, development->开发环境 FILE_SAVE_PATH="cloudFolder" # 网盘文件夹 DATABASE_URL='' # 数据库url MAIL_SERVER='' # 邮件服务器地址 MAIL_USERNAME='' # 邮件服务器用户名 MAIL_PASSWORD='' # 邮件服务器密码 REDIS_HOST="" # redis数据库地址 REDIS_PORT=6379 # redis数据库端口,默认6379 REDIS_PASSWD="" # reids数据库密码 REDIS_DB=0 # redis数据库名字 REDIS_EXPIRE=3600 # redis默认过期时间 ``` ## License This project is licensed under the MIT License (see the [LICENSE](LICENSE) file for details).