π Scripts Library Explained
This library contains a collection of scripts written in Python, Bash, and Ruby, designed to automate various tasks and streamline development processes. Let's explore each folder and its contents:
πΌοΈ Avatar
βββ πΌοΈ Avatar
β βββ ποΈ build
β βββ π§Ή clear
β βββ π update-port
β βββ π€ upload
The avatar folder contains scripts related to user profile images and avatar management.
- ποΈ
build
: Compiles and prepares avatar-related resources - π§Ή
clear
: Removes cached avatar data or temporary files - π
update-port
: Modifies port configurations for the avatar service - π€
upload
: Handles the process of uploading user avatars to storage
π₯οΈ Backend
βββ π₯οΈ Backend
β βββ π all-off
β βββ βΆοΈ all-on
β βββ ποΈ build
β βββ π connect
β βββ π create-service
β βββ π deploy
β βββ π§ generate-env
β βββ ποΈ para-store
β βββ π€ push
β βββ π register
β βββ π¦ repo
β βββ π run
β βββ π service-off
β βββ βΆοΈ service-on
This folder houses scripts for managing the backend services of the application.
- π
all-off
: Shuts down all backend services - βΆοΈ
all-on
: Starts up all backend services - ποΈ
build
: Compiles and prepares the backend application for deployment - π
connect
: Establishes a connection to the backend environment - π
create-service
: Generates a new backend service template - π
deploy
: Handles the deployment of the backend to the production environment - π§
generate-env
: Creates environment variable files for the backend - ποΈ
para-store
: Manages operations related to the parameter store - π€
push
: Pushes backend code changes to the version control repository - π
register
: Registers new backend services with the system - π¦
repo
: Performs repository-related tasks for the backend - π
run
: Executes the backend application in a development environment - π
service-off
: Stops a specific backend service - βΆοΈ
service-on
: Starts a specific backend service
βοΈ CFN (CloudFormation)
βββ βοΈ CFN
β βββ π cicd
β βββ π§ cluster
β βββ ποΈ db
β βββ π ddb
β βββ π frontend
β βββ π networking
β βββ π οΈ service
This directory contains CloudFormation templates and related scripts for various AWS resources.
- π
cicd
: Manages CI/CD pipeline infrastructure - π§
cluster
: Handles ECS cluster setup and configuration - ποΈ
db
: Manages database infrastructure - π
ddb
: Deals with DynamoDB setup and management - π
frontend
: Manages frontend-related AWS resources - π
networking
: Configures networking resources in AWS - π οΈ
service
: Handles various service-related CloudFormation tasks
π Cognito
βββ π Cognito
β βββ π list-users
Scripts related to AWS Cognito user management.
- π
list-users
: Retrieves and displays a list of Cognito users
ποΈ DB (Database)
βββ ποΈ DB
β βββ π connect
β βββ π create
β βββ ποΈ drop
β βββ π kill-all
β βββ π migrate
β βββ βͺ rollback
β βββ π₯ schema-load
β βββ π± seed
β βββ π₯ sessions
β βββ ποΈ setup
β βββ π§ͺ test
β βββ π update_cognito_user_ids
This folder contains scripts for database management and operations.
- π
connect
: Establishes a connection to the database - π
create
: Creates a new database - ποΈ
drop
: Deletes an existing database - π
kill-all
: Terminates all active database connections - π
migrate
: Runs database migrations - βͺ
rollback
: Reverts recent database changes - π₯
schema-load
: Loads the database schema - π±
seed
: Populates the database with initial or test data - π₯
sessions
: Manages database sessions - ποΈ
setup
: Performs initial database setup - π§ͺ
test
: Runs database-related tests - π
update_cognito_user_ids
: Updates Cognito user IDs in the database
π DDB (DynamoDB)
βββ π DDB
β βββ ποΈ drop
β βββ π list-tables
β βββ π patterns
β β βββ π¨οΈ get-conversation
β β βββ π list-conversation
β βββ π scan
β βββ π₯ schema-load
β βββ π± seed
Scripts for managing and interacting with DynamoDB.
- ποΈ
drop
: Deletes a DynamoDB table - π
list-tables
: Displays all DynamoDB tables - π
patterns
: Contains scripts for common DynamoDB query patterns- π¨οΈ
get-conversation
: Retrieves a specific conversation - π
list-conversation
: Lists all conversations
- π¨οΈ
- π
scan
: Performs a scan operation on a DynamoDB table - π₯
schema-load
: Loads the schema for a DynamoDB table - π±
seed
: Populates a DynamoDB table with initial data
π³ Docker
βββ π³ Docker
β βββ ποΈ build
β β βββ π« not-real-path
Scripts related to Docker operations.
- ποΈ
build
: Contains scripts for building Docker images- π«
not-real-path
: Placeholder or example script
- π«
ποΈ ECR (Elastic Container Registry)
βββ ποΈ ECR
β βββ π sign-in
β βββ π¦ repo
Scripts for managing Amazon ECR.
- π
sign-in
: Authenticates with Amazon ECR - π¦
repo
: Manages ECR repositories
π Frontend
βββ π Frontend
β βββ ποΈ build
β βββ π connect
β βββ π deploy
β βββ π§ generate-env
β βββ π€ push
β βββ π register
β βββ π¦ repo
β βββ π run
β βββ π service-off
β βββ βΆοΈ service-on
β βββ ποΈ static-build
β βββ π sync
Scripts for managing the frontend application.
- ποΈ
build
: Compiles and builds the frontend application - π
connect
: Establishes a connection to the frontend environment - π
deploy
: Deploys the frontend to production - π§
generate-env
: Creates environment variable files for the frontend - π€
push
: Pushes frontend code changes to the repository - π
register
: Registers frontend services or components - π¦
repo
: Manages the frontend repository - π
run
: Executes the frontend application in a development environment - π
service-off
: Stops frontend services - βΆοΈ
service-on
: Starts frontend services - ποΈ
static-build
: Generates a static build of the frontend - π
sync
: Synchronizes frontend files or data
π§ Generate
βββ π§ Generate
β βββ π migration
Scripts for generating various project components.
- π
migration
: Creates new database migration files
π¦ Lambda-layers
βββ π¦ Lambda-layers
β βββ π ruby-jwt
Scripts for managing AWS Lambda layers.
- π
ruby-jwt
: Handles the Ruby JWT Lambda layer
ποΈ RDS (Relational Database Service)
βββ ποΈ RDS
β βββ π update-sg-rule
Scripts for managing AWS RDS.
- π
update-sg-rule
: Updates security group rules for RDS
π¨ SAM (Serverless Application Model)
βββ π¨ SAM
β βββ π ddb
Scripts related to AWS SAM.
- π
ddb
: Manages DynamoDB resources using SAM
ποΈ TF (Terraform)
βββ ποΈ TF
β βββ π cicd
β βββ π§ cluster
β βββ π ddb
β βββ π’ fargate
β βββ π network
β βββ ποΈ rds
Scripts for managing infrastructure using Terraform.
- π
cicd
: Manages CI/CD infrastructure - π§
cluster
: Handles cluster setup and configuration - π
ddb
: Manages DynamoDB resources - π’
fargate
: Configures AWS Fargate resources - π
network
: Sets up networking infrastructure - ποΈ
rds
: Manages RDS resources
π§ Miscellaneous Scripts
βββ π bootstrap
βββ π§° busybox
βββ π§ clustermine
βββ π§ prepare
βββ π§ wo-sed-ho
- π
bootstrap
: Initializes the project or environment - π§°
busybox
: Utility script for various small tools - π§
clustermine
: Manages clustering operations - π§
prepare
: Prepares the environment for deployment or development - π§
wo-sed-ho
: Custom utility script (purpose not clear from the name)
This comprehensive set of scripts provides automation and management capabilities for various aspects of the project, from local development to cloud deployment and infrastructure management.