{"id":18599278,"url":"https://github.com/bkawk/vechainapi","last_synced_at":"2026-05-05T13:36:16.387Z","repository":{"id":106275365,"uuid":"329346892","full_name":"bkawk/VeChainAPI","owner":"bkawk","description":"A Dockerized Express API that pushes messages into a queue to be processed offline","archived":false,"fork":false,"pushed_at":"2021-01-19T10:11:17.000Z","size":351,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-07-02T06:45:09.283Z","etag":null,"topics":["aws","docker","express","sqs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bkawk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-13T15:16:43.000Z","updated_at":"2021-01-22T16:02:33.000Z","dependencies_parsed_at":"2024-04-10T15:00:43.328Z","dependency_job_id":null,"html_url":"https://github.com/bkawk/VeChainAPI","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bkawk/VeChainAPI","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2FVeChainAPI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2FVeChainAPI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2FVeChainAPI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2FVeChainAPI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bkawk","download_url":"https://codeload.github.com/bkawk/VeChainAPI/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bkawk%2FVeChainAPI/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32651692,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-05T11:29:49.557Z","status":"ssl_error","status_checked_at":"2026-05-05T11:29:48.587Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aws","docker","express","sqs","typescript"],"created_at":"2024-11-07T01:38:33.257Z","updated_at":"2026-05-05T13:36:16.367Z","avatar_url":"https://github.com/bkawk.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VeChainAPI\nSimple web-facing API that accepts payment requests from a React front end, the payment request contains an amount and an address. The API, in turn, sends the request to AWS SQS to be processed by a secure lambda function that is listening to queue and not web facing.\n\n[![\u003cORG_NAME\u003e](https://circleci.com/gh/bkawk/VeChainAPI.svg?style=svg)](\u003cLINK\u003e)\n\n\n## TODO\n\n* Add logging with pino\n* Sanitise incoming data\n* Configure CORS for front end only\n* Check all functions have try catch\n* Final lint\n* Configure CircleCI to push to ECR on success\n* Build out tests to get coverage\n\n## Install\n\n```ssh\nnpm install\n```\n\n## Run Development\n\n```ssh\nnpm run dev\n```\n\n## Watch Tests\n\n```ssh\nnpm run devtests\n```\n\n## Start\n\n```ssh\nnpm run start\n```\n\n## Docker\n\n```ssh\nnpm run docker\n```\n\n## Lint\n\n```ssh\ntslint --project .\n```\n\n## Deploy\n\n* Setup a domain Route 53\n* Setup a Certificate in Certificate manager\n* Create a remote repository in AWS ECR\n* Push docker image to ECR\n* Create a new VPC\n* Create 2 Subnets for private and 2 Subnets for public\n* Attach an Internet gateway to VPC\n* Create 2 route tables one for public and one for private\n* On the public route table connect the Internet Gateway and NAT Gateway\n* On the private route table setup a route for the NAT Gateway\n* Associate the coresponding subnets to the 2 route tables\n* Create an ECS Cluster powered by Fargate in a new VPC\n* Create a Fargate ECS Task Definition and link the docker image in ECR\n* Create an application load balancer and target group for the public subnet\n* Create a Fargate service in the Cluster, connect the load balancer and configure the security group\n* Alias the domain to the load balancer\n* Setup AWS Code Deploy linking it to GitHub\n\n![Network diagram](https://i.imgur.com/dNK55T8.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkawk%2Fvechainapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbkawk%2Fvechainapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbkawk%2Fvechainapi/lists"}