Skip to content

vivalalova/comic-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comic-express

Master

Build Status

Develop

Build Status

Usage

  • git clone

  • cp ./config/env.sample.js ./config/env.js

    • set env param in ./config/env.js
  • cp ./config/session.sample.js ./config/session.js

    • set session secret
  • create seed user with admin permission

    • modify user id and passwd first
node seed.js
  • launch with node ./bin/www or else

API

category

path /category/

catalog

path /catalog/

  • category title

    • from response of api category ex : 冒险类
  • title for search comic-express

  • sort optional,could be set to following

    • hot , sort for hot catalog
    • update , sort for recent updated
  • limit default to 30

  • skip (offset) default to 0

  • POST : send multiple catalog as array

    • auto create or update
    • bad in error handing

chapter

path /catalog/{catalog_id}/chapter

  • catalog_id
  • limit = 2000

page

path /catalog/{catalog_id}/chapter/{chapter_id}/page

  • catalog_id
  • chapter_id
  • limit = 1000