dy93 / skycomic.org-backend

skycomic.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

System Requirement

  • apache 2.2
  • node.js & npm
  • php 5.4 up
  • php extensions:
    • curl
    • mysqli
    • GD
    • mcrypt
  • mariadb / mysql
  • cronjob
  • proxy (optional) (proxy.js or squid-like proxy server)

Setup

> git clone --recursive https://github.com/skycomic-org/skycomic.org.git 
  • apache config
  • PHP Config
    • cp index.default.php index.php # and make some changes

    • cd application/config

    • copy *.default.php to *.php and make some changes
  • Permission
    • make sure your WWW has write permission of application/cache and application/logs
  • database
    • import private/install.sql to your database (e.g. skycomic)
    • modify application/config/database.php
  • proxy
    • add your proxy setting in the proxys table in your database
  • init database
    • run private/script/init.sh to fetch the comic index and chapters
  • cronjobs
    • add cronjobs corresponded to private/script/cron-*
  • build frontend
cd frontend
npm install
npm run bower install
npm run gulp

Setup via Docker (for development only, just few steps)

See dockerfile-skycomic

About

skycomic.org

License:GNU Affero General Public License v3.0


Languages

Language:PHP 99.8%Language:HTML 0.1%Language:Shell 0.0%Language:ApacheConf 0.0%