SecretSwap App
Website hosted at https://app.secretswap.net
Official repository at https://github.com/SecretFinance/SecretSwap
Instructions
Migrate from previous installation
A one time clean up is required if migrating from another repo source. The npm module Husky
was removed from this repo
and files are left behind that produce unwanted side effects with git
.
Therefore, delete all files in the existing SecretSwapApp/.git
folder that contain text "Hook created by Husky
".
Installation
- Install Git Getting started
- Install Node.js tested with 16.xx.x LTS
- Install Yarn
npm install --global yarn
- Install app
git clone https://github.com/SecretFinance/SecretSwap.git ./SecretSwapApp
- Change to folder
SecretSwapApp
, and runyarn
to install node_modules - Under Windows, run
npm config set script-shell "C:\\Program Files\\git\\bin\\bash.exe"
(your git path may differ)
Running
Run for Mainnet
yarn host
Run for Testnet
yarn host:testnet
After using any host command, visit the ui at http://localhost:3000
Build a production site
yarn make
Config files for different networks are at src/config/
To host this repo on render.com, follow this guide to add a Rewrite Rule