Deploy your own exchange on AWS
QUANTA blockchain is a powerful QDEX that enables anyone to launch their own white-label exchange and earn money from transactions fees, listing and other fees. The entire repo is available to you which you can deploy in just 5 mins: https://github.com/quantadex/react_quantadex
The frontend is built on react, which can be run completely client side, as a static webpage. There are several advantages to this. It requires zero infrastructure (such as nodejs, nginx, etc) to host a dynamic server. This means you can deploy to S3, and Cloudfront with zero risk of downtime.
All examples are for demo.quantadex.com, replace your domain as necessary.
S3 Setup
Create a new bucket with the canonical name as your domain name, in our case, demo.quantadex.com
Enable Static Hosting
Enable Bucket Read
4. Enable all redirects go to the index.html . This configuration is the most important steps as it redirects are URLs to index.html, which is processed by the react router.
4. Deploy
You can either upload the entire project manually or run a script like ours to upload.
5. Verify your end point is working.
Cloudfront
Cloudfront is CDN service that can get your data closer to the your users endpoints. Also it enables you to use Amazon's free SSL service.
Create a new distribution
In Viewer Protocol Policy, redirect your http traffic to https
In distribution settings, enter your alternate domain names, and pick a custom SSL certificate. (assuming you created already)
Create custom errors redirect back to React router. Do the same for 404 and 403 errors.
When you deploy, remember to invalidate your cache. or add another line to your deployment script.
Route53
Create a new A record alias pointing to your cloudfront
That's it!
If you have additional questions, please send to partnership@quantadex.com or reach out to us on Telegram.
Last updated
Was this helpful?