Skip to content

Latest commit

 

History

History
86 lines (66 loc) · 1.84 KB

README.md

File metadata and controls

86 lines (66 loc) · 1.84 KB

CCIP-Puzzle-Chocolate

Rafactoring project from CCIP-Puzzle-Bueno

How to use it (Deploy Guide)

Prepare configration file for puzzle game

There will be two way to prepare configration:

  1. Manually create json file like following format
{
  "confName": "OPass",
  "title": {
    "zh-TW": "大地集章",
    "en": "Rewards"
  },
  "description": {
    "zh-TW": "大地遊戲說明文字",
    "en": "Booth reward activity description"
  },
  "bingoPattern": "",
  "booths": [
    {
      "isBonus": true,
      "significant": "c",
      "slug": "opass",
      "displayText": {
        "zh-TW": "OPass 快速通關",
        "en": "OPass Check-in"
      },
      "description": {
        "zh-TW": "OPass 快速通關開發團隊",
        "en": "Develop team of OPass app."
      },
      "imageUrl": "https://avatars0.githubusercontent.com/u/24525301?s=200&v=4",
      "point": 0
    }
  ]
}
  1. Using google separeatesheet template and converting script writing on node.js

Using CCIP-App/CCIP-Puzzle-Config-Generator-Chocolate

More detail about configuration see Configuration file

Set project configuration and build

Modify config/project.json, given values for API_URL with an base url for OPass server side and for configURL with an URL point to configuration file which generated on previous step.

Then run npm run build to build project and deploy everwhere you want to deploy

Configration file

TBC

Development

Install dependency

npm run install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.