通过华尔街见闻的api获取日历,生成ics文件 示例
首先确认本机已经安装 Python 运行环境。然后执行下列指令:
首先确认本机已经安装 Python 运行环境和 LeanCloud 命令行工具,然后执行下列指令:
$ git clone git@github.com:heyu91/wallstreetcn-calendar.git
$ cd wallstreetcn-calendar
pip install -r requirements.txt
lean app add origin <appId>
这里的 appId 填上你在 LeanCloud 上创建的某一应用的 appId 即可。origin 则有点像 Git 里的 remote 名称。
lean up
应用即可启动运行:localhost:3000
部署到预备环境(若无预备环境则直接部署到生产环境):
lean deploy
将预备环境的代码发布到生产环境:
lean publish