command
module
Version:
v0.0.0-...-c3b309f
Opens a new window with list of versions in this module.
Published: Aug 18, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Overview
A web app that converts any URL to a short "byte-link", which can easily be used and shared. Below are some examples:
Website: https://bytesize.link
Architecture
There are Terraform modules to deploy the web client, CI/CD pipeline, and infrastructure to AWS. These modules are found in tf_modules.
The Lambda functions can be found in the lambda_src directory.
Infrastructure Diagram
Notes
- The web servers auto-scale based on CPU to handle traffic.
- The servers are behind a load balancer to distribute web traffic to the scaling web servers.
- GenerateURL uses TensorFlow's Toxicity Classifier Model to filter out inappropriate custom links.
Code Release Diagram
Notes
- CodePipeline is automatically triggered whenever it detects a change in this GitHub repository:
-
- The code is compiled with CodeBuild, and unit tests are executed against it.
-
- Once the code is built, and the unit tests pass, the build artifacts are stored in an S3 bucket.
-
- CodeDeploy uses the stored artifacts and deploys the updated app into the web servers.
- CodeDeploy uses a Blue/Green Deployment, using two live environments:
- Blue: Uses the existing code
- Green: Uses the new code
- After validating that the green environment works properly, I can choose to remove the blue environment
- If the green environment has issues, I can quickly switch back to the blue environment
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
src
|
|
api
Package api handles invocations to backend APIs.
|
Package api handles invocations to backend APIs. |
httphandler
Package httphandler is used to render webpages.
|
Package httphandler is used to render webpages. |
inputvalidation
Package inputvalidation implements additional functions to validate input given to the web client.
|
Package inputvalidation implements additional functions to validate input given to the web client. |
Click to show internal directories.
Click to hide internal directories.