GithubHelp home page GithubHelp logo

Cubingchina

The official website of Cubing China https://cubingchina.com.

Installation

Environments

  1. Nginx/Apache
  2. PHP 7.0+
  1. MySQL 5.1+
  2. Yii Framework 1.1.20
  3. Composer
  4. Redis
  5. Nodejs

Steps

  1. Clone this repo to /path/to/cubingchina.
  2. Put framework directory of Yii to /path/to/cubingchina/../framework.
  3. Create four databases, each named cubingchina, cubingchina_dev, wca_0 and wca_1. Then grant privileges on these to cubingchina with empty password.
  4. cd /path/to/cubingchina/protected/config and Create one file named wcaDb then Set the content as 0 or 1.
  5. Import structure.sql and data.sql into cubingchina and cubingchina_dev.
  6. Run /path/to/cubingchina/protected/commands/shell/wca_data_sync.sh.
  7. cd /path/to/cubingchina/protected && composer install.
  8. cd /path/to/cubingchina/public/f && npm i && npm run build.
  9. Set document root of Nginx/Apache to /path/to/cubingchina/public.
  10. Make sure /path/to/cubingchina/public/assets and /path/to/cubingchina/protected/runtime are writable.
  11. If you need to switch to dev mode, set ENV of php to dev.
  12. Enjoy.

Suggestions or Possible mistakes

  1. Local server environment include Apache, Mysql, PHP such as WAMP, MAMP or XAMMP are recommanded
  2. wca_data_sync.sh include grep, lftp, sedcommands,install them before run this script
  3. The rewrite rules of Apache must be configed to index.php

Cubing China's Projects

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.