Skip to content

webpack-china/harpers

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