# xgz-oauth **Repository Path**: doswhy/xgz-oauth ## Basic Information - **Project Name**: xgz-oauth - **Description**: 简单的 Flask OAuth 登陆系统,支持 QQ、微博、豆瓣登陆。 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2016-02-07 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # xgz-oauth 初始化方法(下面使用 python3 环境,Mac 下测试通过) ### 0. 下载项目 ``` $ git clone https://git.oschina.net/binderclip/xgz-oauth.git ``` ### 1. 建立虚拟环境、启动、安装依赖 ``` $ cd xgz-oauth $ ls README.md config.py migrations app manage.py requirements.txt $ pyvenv venv $ source venv/bin/activate (venv) $ pip install -r requirements.txt ... ``` ### 2. 初试化数据库 ``` (venv) $ python manage.py db upgrade ``` ### 3. 运行 ``` (venv) $ python manage.py runserver * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) * Restarting with stat ... ``` ### 4. 效果 注意:里面暂时没有把库切换到国内的 CDN,所以可能需要翻墙才能正常使用。 ![](./imgs/login.png) ![](./imgs/login-ok.png) ![](./imgs/bind.png)