This project is hellogithub.com website.

Introduction to the

Since do is open source project recommendation, so simply open source the site.

In the meantime, because a lot of newbies want to join the open source community and don’t know how to get started, I’m going to write a series of tutorials based on this project (Flask Web Development) entitled: Let Python take you into the open Source world

Content covers:

  • Open source is introduced
  • Use of GitHub and Git
  • Web development (Based on Flask)
  • Open Source Project Management

The idea is still in embryonic form, welcome to discuss and offer suggestions, I think it may be necessary to set up a wechat group, my wechat account is xueweihan (please note hellogithub).

The installation

  1. Download items:git clone https://github.com/521xueweihan/hellogithub.com.git
  2. Install dependencies:pip install -r requirements.txt
  3. configuration
  4. Activation:python server.py

The configuration procedure is as follows:

In that directory: / project address/hellogithub.com/hellogithub/hellogithub/ create config. Py, configuration content is as follows:

#/usr/bin/env python
# -*- coding:utf-8 -*-
from os import path

DEBUG = True
SECRET_KEY = 'test_secret_key'
STATIC_PATH = path.join(path.dirname(__file__), 'static')

PAGE_MAX = 5
GITHUB_IMAGE_URL = u'https://raw.githubusercontent.com/521xueweihan/HelloGitHub/{path}'
GITHUB_IMAGE_PREFIX = u'https://github.com/521xueweihan/HelloGitHub/blob/'
GITHUB_IMAGE_PATH_PREFIX = u'master/content/{volume_name}/img/{image_name}'

APP_DIR = 'Address/hellogithub.com/hellogithub/project'

GITHUB_TEMPLAT_PATH = path.join(APP_DIR.'output_template/github_template.md')
GITBOOK_TEMPLAT_PATH = path.join(APP_DIR.'output_template/gitbook_template.md')

DATABASE = 'sqliteext:///%s' % path.join(APP_DIR.'test_hellogithub.db')


# GitHub OAuth local
CLIENT_ID = '02f1c617c1b20948b635'
CLIENT_SECRET = '2102c5c75d7482acf70a09317b697d6892380adc'
AUTHORIZE_URL = 'https://github.com/login/oauth/authorize/'
ACCESS_URL = 'https://github.com/login/oauth/access_token/'Copy the code

Enable admin permission:

  • Landing a
  • Example Change the admin field in the database to 1
  • Log out and log in again
  • Click the user name to jump to the management background