Skip to content

webpack-china/harpers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
zd98
Jul 8, 2017
f1eacf4 · Jul 8, 2017
May 16, 2017
Jul 8, 2017
Apr 1, 2017
Apr 9, 2017
Jul 8, 2017
Apr 1, 2017
May 21, 2017
Apr 1, 2017
Apr 5, 2017
Apr 1, 2017
May 9, 2017
Apr 1, 2017
Jun 6, 2017
Jun 6, 2017
Apr 1, 2017

Repository files navigation

Harpers

Installation

  1. Import database by .sql file in /db.

  2. Update database configuration in /src/common/config/db.js.

// step1: 
mysql -u root -p 

// step2: 
create database harpers;

// step3:
exit;

// step4:
cd db
mysql -uroot -p harpers < harpers_2017-02-09.sql

  1. Set github login auth key in /src/common/env/development.js.

    Github redirect uri will like xxx.com/api/user?_method=post&type=github.

// step1:
https://github.com/settings/applications/new

// step2: 
Application name: harpers
Homepage URL: http://localhost
Authorization callback URL: http://local.webpack-china.org/api/user?_method=post&type=github

// step3:
fill Client ID and Client Secret and redirect_uri (Authorization callback URL) in `/src/common/env/development.js`.
  1. Run npm start, open http://local.webpack-china.org:9000/

  2. Visit http://local.webpack-china.org:9000/api/user?_method=post&type=github to login

API Documentation

Open xxx.com/doc/index.html, like http://local.webpack-china.org/doc/index.html

Contribution

License