Rafactoring project from CCIP-Puzzle-Bueno
There will be two way to prepare configration:
- 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
}
]
}
- 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
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
TBC
npm run install
npm run serve
npm run build
npm run lint