uniscript

1.0.2283 • Public • Published

uniscript

Purpose

This tool is designed to provide a universal code template populator. I also plan to make it a univeral script execution tool, which is the reason of its name.

Getting Started

Install UniScript to enable the "us" commandlet

npm install -g uniscript

To verify the installation, try print the version with either of the following commands:

us --version
us -v

To update uniscript:

us t/update

AWS + Azure DevOps

Use Amazon Web Service with Azure DevOps for CI/CD. You need to install Azure CLI with the devops extension. Initialize AWS + Azure DevOps:

us aws/az-dev

Modify the 'az-dev-env.yml'. Then setup the project:

us aws/az-setup

Azure DevOps Utilities

To get the tools working, a repo with the AWS utility functions for Azure DevOps is required. 0) Create The Azure DevOps project, create the "AWS Service Connection", where the connection name is the 12 digit AWS Account Id.

  1. Initialize:
us aws/az-dev
  1. Modify the 'az-dev-env.yml' with proper values, then run setup:
us aws/az-setup
  1. Add the project source files and create corresponding Azure DevOps pipelines (This will work if your default brand is either "main" or "master"):
us aws/az-util
  1. Details about Azure Utilities

Azure DevOps Operations

Run Pipeline

Run the Azure DevOps pipeline for project:

us aws/az-run [project-name]

Delete Pipeline

Delete the Azure DevOps pipeline for project:

us aws/az-rm [project-name]

AWS Lambda

Create Python Project

us aws/py/lambda [project-name]

Create Python Docker Project

us aws/py/lambda-docker [project-name]

Create Python Layer

us aws/py/layer [project-name]

Create TypeScript Project

us aws/ts/lambda [project-name]

Create TypeScript Docker Project

us aws/ts/lambda-docker [project-name]

Create TypeScript Layer

us aws/ts/layer [project-name]

Create C# Project

us aws/cs/lambda [project-name]

Create C# Docker Project

us aws/cs/lambda-docker [project-name]

AWS CloudFront

Angular

This requires @angular/cli

us aws/cdn/angular [project-name]

Update ApiGateway Websocket API and Cognito Login URL for Angular

This will update the environment.ts and environment.*.ts files.

us aws/cdn/angular-update [angular-project-name] [aws-profile-name] [users-project-name] [websocket-project-name] [environment-name]

AWS Users

Users

Create a users project

us aws/users

AWS API

JWT Layer

JWT Layer is required for Websocket, install it first before using the following API projects. JWT Layer is a nodejs layer.

us aws/api/jwt-layer

Websocket

Create a Websocket project

us aws/api/websocket [project-name]

Integrate Lambda to Websocket API

Add Lambda Integration to ApiGateway Websocket API.

us aws/api/websocket-lambda [websocket-project-name] [lambda-websocket-project-name] [namespace.service]

Where namespace.service is the service name from RPC

RPC

Create RPC Project

RPC project defines the data contracts and APIs between frontends and backends.

us aws/rpc [rpc-project-name]

in the uni-rpc.yml file, the users type can be emitted to the "Users" project to update the cloudformation.yml file.

Readme

Keywords

none

Package Sidebar

Install

npm i uniscript

Weekly Downloads

56

Version

1.0.2283

License

none

Unpacked Size

116 kB

Total Files

22

Last publish

Collaborators

  • errisy