An example of a game integration into BitGuild portal
Check
- https://medium.com/@jgm.orinoco/ethereum-smart-service-payment-with-tokens-60894a79f75c approveAnCall section to better understand how payments with tokens work on Ethereum
- https://ethereum.stackexchange.com/questions/34160/why-do-we-use-revert-in-payable-function
- https://theethereum.wiki/w/index.php/ERC20_Token_Standard
- edit config file
# dev
nano ecosystem.development.json
# prod
nano ecosystem.production.json
nano build.sh
- run
npm i
# dev
npm start
# prod
npm run build
NODE_ENV=production npm start
sudo nano /etc/nginx/sites-available/default
sudo nginx -s reload