Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccc7cfa
commit 9ea91f4
Showing
3 changed files
with
43 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,43 @@ | ||
# weapp-zhihulive | ||
# weapp-zhihulive | ||
|
||
|
||
基于Zhihu Live数据的微信小程序.数据归知乎所有,本项目用于技术学习 | ||
|
||
## Preview | ||
|
||
![设计图](./screenshot/zhihulive.png) | ||
|
||
![效果图](./screenshot/zhihulive.gif) | ||
|
||
## Getting started | ||
|
||
本项目包含服务端和微信小程序全部源代码: | ||
|
||
```python | ||
❯ git clone https://github.com/dongweiming/weapp-zhihulive | ||
❯ cd weapp-zhihulive | ||
❯ tree -L 1 | ||
. | ||
├── App # 小程序代码 | ||
├── LICENSE | ||
├── README.md | ||
├── Server # 服务端+爬虫代码 | ||
├── screenshot # 设计图和动态效果 | ||
``` | ||
|
||
启动服务端: | ||
|
||
```python | ||
❯ cd Server | ||
❯ python3 -m venv venv3 --system-site-packages | ||
❯ source venv3/bin/activate | ||
❯ python3 -m pip install -r requirements.txt | ||
# 配置MySQL和Elasticsearch | ||
❯ python crawl.py # 运行爬虫获取全部Live数据 | ||
❯ python app.py # 启动API服务 | ||
``` | ||
|
||
运行小程序: | ||
|
||
1. [下载并安装小程序开发工具](https://mp.weixin.qq.com/debug/wxadoc/dev/devtools/download.html) | ||
2. 启动开发工具,添加项目,目录为App |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.