Simple Zhihu Demo By Flask
- Install pip and mysql
- Make a virtualenv for this project
- Install the required dependencies:
pip install -r requirements/dev.txt
- Edit config.py: change 'db_user' and 'db_passwd' to your mysql account
- Initialize data:
mysql -u root -p < initial.sql
python manage.py run
goto: http://127.0.0.1:5000/