1.8.0 • Published 2 years ago

create-full-sls-app v1.8.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Serverless Full Boilerplate

This is a CLI tool to create Serverless boilerplate applications. Ready to deploy in a few seconds.

Usage

npm i -g create-full-sls-app
create-full-sls-app

or

npx create-full-sls-app

Answer the questions. It will create a directory of with the name you gave for your project.

cd your-project-name

yarn
yarn domain:create:dev
yarn deploy:dev

or run in your local:

yarn start:local

What's included?

Command Options List

nametypedefaultdescription
templatechoicesserverless-full-sls-app
namestrict-stringrequiredProject name (e.g dummy-service)
organizationstrict-stringrequiredOrganization name (e.g finn-auto)
gitSetupchoicesGitLabOptions: GitLab, GitHub
mainBranchchoicesmainOptions: main, master
enableSonarCloudboolYSetup SonarCloud (Y/n)
enableMultiRegionboolYAdd us-east-1 and enable multi-region (Y/n)
enableDataDogboolYEnable DataDog in the setup (Y/n)
dataDogArnEuCentralstringemptyDataDog EU ARN (only if DataDog is enabled)
dataDogArnUsEaststringemptyDataDog US ARN (only if DataDog and multi-region is enabled)
memorySizenumber256Memory Size of Lambda in MB
timeoutnumber10Timeout of API endpoints in seconds
minimumCompressionSizenumber1024Minimum Compression Size of API Gateway in MB
maxRequestsPerSecondnumber100API Gateway Throttling Maximum Requests Per Second setting
maxConcurrentRequestsnumber50API Gateway Throttling Maximum Concurrent Requests setting
developmentUrlstringdev-service.domain.comDevelopment service URL
productionUrlstringservice.domain.comProduction service URL

Example:

npx create-full-sls-app --template=serverless-full-sls-app --name=dummy-name --organization=dummy-org --gitSetup=GitLab --mainBranch=main --enableSonarCloud --enableMultiRegion --enableDataDog --dataDogArnEuCentral=dummyArn --dataDogArnUsEast=dummyArn --memorySize=1024 --timeout=20 --minimumCompressionSize=1024 --maxRequestsPerSecond=200 --maxConcurrentRequests=50 --developmentUrl=dev-service.domain.com --productionUrl=service.domain.com

Development

yarn build
yarn start

Contribution

Feel free to create a PR to add a new feature or update the current tool. :)


Author: Emin Bugra Saral <3

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.0

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago