Skip to content

IX-Swap/interface

Repository files navigation

IXswap Interface

RELEASE - AWS build & deploy Unit Tests Integration Tests

Development

Environment: Machine on Linux or MacOS Dependencies:

  1. yarn - at least v 1.22.
  2. npm - at least v 7.15.1
  3. node - at least v 14.17.0 Steps:
  4. Make sure your npm account is added to our [https://www.npmjs.com/settings/ixswap1/members](npm organization)
  5. run npm login. You need this to be able to install ixswap packages
  6. run git clone [email protected]:IX-Swap/interface.git
  7. run yarn build
  8. run yarn start

Accessing IXswap

The IXswap App supports swapping, adding liquidity, removing liquidity.

(FIRST DEPLOY) Provision your infrastructure using terraform

cat <<-EOF >> .env
VERSION=v1
ENVIRONMENT=production
WEBSITE_NAME='IX-Swap-Web'
AWS_REGION=ap-southeast-1
AWS_APP_NAME=ix-swap-web
AWS_APPLY_CONFIRM=true
AWS_AZS='["ap-southeast-1a", "ap-southeast-1b"]'
#AWS_ACM_ARN=''
EOF
# Configure AWS CLI
aws configure
# Initialize terraform (s3 bucket for tf.status, plugins, modules etc)
./bin/tf-init.sh
# Apply infrastructure terraform scripts
./bin/tf-apply.sh
Sync existent s3-bucket
aws s3 sync ./build/ s3://<s3-buket-name>/ --acl public-read
aws s3 website s3://<s3-buket-name/ --index-document index.html

***end