Dev repo of funded by Cardano Catalyst cReport project.
TypeScript
Install & run dev
git clone https://github.com/saigonbitmaster/creport_2.0
add local host dns record /etc/hosts: 127.0.0.1 creport.bworks.app
cd creport_2.0
update .env files
yarn
yarn build-lib
yarn api
yarn cms
yarn web
Build & run app
git clone https://github.com/saigonbitmaster/creport_2.0
cd creport_2.0
yarn
yarn build-lib
yarn build-api
yarn build-cms
yarn build-web
frontend app after build can be run by any http server e.g nginx server
backend app after build can be run by: node main.js or pm2
frontend .env files: cms/.env, web/.env: change below api urls to reflect the production domains.
https://docs.google.com/spreadsheets/d/1WJi1odv0vGT3ylz01flNpqErmCr-G6Kb37yxaVZOzVM/edit#gid=165710495
if token is expired, delete token.json then restart api, google will request access via web then recreate new token.json
googleSheets url to show data e.g catalyst report
Make o copy of catalyst report googleSheets https://docs.google.com/spreadsheets/d/1bfnWFa94Y7Zj0G7dtpo9W1nAYGovJbswipxiHT4UE3g/edit#gid=495459176 to your drive, where you have right to publish the sheet to web.
From copied sheet: File -> Share -> Public to the web
Get published url then add to cms settings with key "catalystReport"
copy ID and status columns from https://docs.google.com/spreadsheets/d/1bfnWFa94Y7Zj0G7dtpo9W1nAYGovJbswipxiHT4UE3g/edit#gid=661694288 to tools/proposals.txt
node createData.ts
copy log data then paste to mongo script to update data