https://github.com/bkawk/vechainreact
A Dockerized React application that allows the user to request test net VET tokens.
https://github.com/bkawk/vechainreact
docker react sass serverless typescript
Last synced: 6 months ago
JSON representation
A Dockerized React application that allows the user to request test net VET tokens.
- Host: GitHub
- URL: https://github.com/bkawk/vechainreact
- Owner: bkawk
- License: mit
- Created: 2021-01-14T00:18:01.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-01-21T10:23:08.000Z (about 5 years ago)
- Last Synced: 2024-12-26T22:18:33.702Z (about 1 year ago)
- Topics: docker, react, sass, serverless, typescript
- Language: TypeScript
- Homepage: https://www.vchain.click
- Size: 785 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# VeChain React
A simple react app in TypeScript and Sass that allows the user to request funds by entering the amount of funds and the address to send the funds to. The Address and amount is then sent to AWS SQS where it will await processing by a lambda function.
View the site running at [https://www.vchain.click/](https://www.vchain.click/)
[]()
## TODO
* Change the favicon
* Add meta for social
* Add countdown / noise to show when the funds arrive
* Add routes and change page to show balance
* Expand tests for coverage
* Tidy up sass files and stucture
## Install
```ssh
npm install
```
## Start
```ssh
npm run start
```
## Docker
```ssh
npm run docker
```
## Lint
```ssh
tslint --project .
```
## Deploy
* Setup a domain Route 53
* Setup a Certificate in Certificate manager
* Create a remote repository in AWS ECR
* Push docker image to ECR
* Create a new VPC
* Create 2 Subnets for private and 2 Subnets for public
* Attach an Internet gateway to VPC
* Create 2 route tables one for public and one for private
* On the public route table connect the Internet Gateway and NAT Gateway
* On the private route table setup a route for the NAT Gateway
* Associate the coresponding subnets to the 2 route tables
* Create an ECS Cluster powered by Fargate in a new VPC
* Create a Fargate ECS Task Definition and link the docker image in ECR
* Create an application load balancer and target group for the public subnet
* Create a Fargate service in the Cluster, connect the load balancer and configure the security group
* Alias the domain to the load balancer
* Setup AWS Code Deploy linking it to GitHub
