# ChatGame **Repository Path**: Alfred_Zhang/chatgame ## Basic Information - **Project Name**: ChatGame - **Description**: No description available - **Primary Language**: Python - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 0 - **Created**: 2017-07-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Python-getting-started 一个简单的使用 Flask 的 Python 应用。 可以运行在 LeanEngine Python 运行时环境。 ## 使用命令行工具创建项目 请参考 [LeanCloud 命令行工具](https://leancloud.cn/docs/cloud_code_commandline.html) 文档。 ## 手动创建项目 首先确认本机已经安装 [Python](http://python.org/)3.5 运行环境。然后执行下列指令: ``` $ git clone git@github.com:leancloud/python-getting-started.git $ cd python-getting-started ``` 准备启动文件: ``` $ touch start.sh $ chmod +x start.sh ``` 将 app id 等信息输入到 `start.sh` 文件中: ``` export LC_APP_ID= export LC_APP_KEY= export LC_APP_MASTER_KEY= ``` 启动项目: ``` $ ./start.sh ``` 应用即可启动运行:[localhost:3000](http://localhost:3000) ## 部署到 LeanEngine 部署到测试环境: ``` $ avoscloud deploy ``` 部署到生产环境: ``` $ avoscloud publish ``` ## 相关文档 * [LeanEngine 指南](https://leancloud.cn/docs/leanengine_guide.html) * [Python SDK 指南](https://leancloud.cn/docs/python_guide.html) * [Python SDK API](https://leancloud.cn/docs/api/python/index.html) * [命令行工具详解](https://leancloud.cn/docs/cloud_code_commandline.html) * [LeanEngine FAQ](https://leancloud.cn/docs/cloud_code_faq.html)