- Website: https://piginu.com
- E-mail: [email protected]
- Telegram: https://t.me/piginu_com
- Telegram Chat Group: https://t.me/piginu_group
- Telegram Announcements: https://t.me/piginu_ann
- Twitter: https://twitter.com/piginu_com
- Discord: https://discord.gg/Z3Sp4Yxhex
If you'd like to deploy our smart contracts for test reasons:
- Edit .secret and put there a wallet mnemonic phrase (24 words) - you need to have some gas on it
- Register on polygonscan.com, bscscan.com or other etherscan-like website and create a new API keys
- Edit .apikey_* files and add your api keys on the first line of each file (* means block explorer name, e.g.: polygonscan, bscscan ...)
- Edit ./scripts/deploy.js and set variables
- If you'd like to deploy website too, edit ./deploy.sh and set WEB variable with deploy path
- Install dependencies and run deploy script:
yarn install
./deploy.shYou can run unit tests using:
npx hardhat clean && npx hardhat compile && npx hardhat test- Hardhat
- Solidity
- Node v16.x (do not use 17.x!)
- NPM
- Yarn
You can also build web page manualy without deploying new smart contracts using:
cd ./web
./build.shIf you'd like to run development version of Pig Inu website, you can run (default port: 4001):
cd ./web
./runweb.shThen open browser: http://localhost:4001
This requires screen package.
You can watch log file using:
screen -x PigInuYou can proxy pass test version to port 80 using Nginx:
server {
listen 80;
listen [::]:80;
root /data/www/test.piginu.com;
index index.html index.htm;
server_name test.piginu.com;
access_log /data/log/nginx/test.piginu.com.access.log;
error_log /data/log/nginx/test.piginu.com.error.log;
location / {
proxy_pass http://127.0.0.1:4001;
#try_files $uri /index.html;
}
location ~ /\.ht {
deny all;
}
}