adousen / julialang.cn

julialang.cn 网站程序代码

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Alt text

This is julialang.cn site like julialang.org, but it uses python and flask instead of ruby to generate the markdown pages, and has added more modules to community. This Project is in development.

Installation

  1. clone the repo
  2. set up virtual environment: virtualenv venv. (if you do not use virtualenv, you can skip this step)
  3. activate virtual environment: source venv/bin/activate. (if you do not use virtualenv, you can skip this step)
  4. pip install -r requirements.txt

Create database

  1. open config.py, set SQLALCHEMY_DATABASE_URI, MySQL example:
SQLALCHEMY_DATABASE_URI = 'mysql://juliacn:somepass@localhost/juliacn?charset=utf8'
  1. create a new database juliacn, MySQL example:
CREATE DATABASE IF NOT EXISTS juliacn DEFAULT CHARSET utf8 COLLATE utf8_general_ci;

Init database tables

  1. python manage.py db init
  2. python manage.py db migrate
  3. python manage.py db upgrade

Run

  1. python manage.py runserver
  2. visit http://localhost:5000

About

julialang.cn 网站程序代码


Languages

Language:Python 55.0%Language:TeX 28.7%Language:HTML 10.3%Language:CSS 5.6%Language:Makefile 0.5%