Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wanghan0501/chuangxianghui

创享汇扫码评论项目
https://github.com/wanghan0501/chuangxianghui

Last synced: 3 days ago
JSON representation

创享汇扫码评论项目

Awesome Lists containing this project

README

        

# shuzhifenxiang(孰知分享)

## Introduction
- Scan QR code and get a random comment.
- Manage comments and statistic visit times.

## Effect
- From PC

![PC](http://p0zok30am.bkt.clouddn.com/18-1-1/80742177.jpg)

- From Phone

![phone](http://p0zok30am.bkt.clouddn.com/18-1-1/49591576.jpg)

## Environment
- Language:Python3
- Web framework:Flask
- Database: Sqlite

## Quick Use

If you want to use this without docker, you can following below:

```bash
python3 manage.py
```
### Change Port

Default port: `5000`

If you want to change the default port, please set the port which you want to the following statement.
```python
app.run(debug=False, port=5000, host='0.0.0.0', threaded=True)
```

### Manage comments

If you want to manage comments, please visit `http://localhost:5000`

- Default account: `shuzhifenxiang`
- Default password: `123456`

## Development

1. develop project by docker
```bash
docker build -t "wanghan0501/flask:chuangxianghui" .
```
2. run docker
```
docker run -it -p 80:5000 --name shuzhifenxiang wanghan0501/flask:chuangxianghui
```
3. control docker with running

- Go into the existing docker.

```Control+C``` will kill the docker.
```
docker attach chuangxianghui
```
- Start a new terminal.

```Control+C``` will not kill the docker.
```
docker exec -it shuzhifenxiang /bin/bash
```

## Contact Me
If you have some questions about this project, please contact me.
[[email protected]](mailto:[email protected])