# create-full-sls-app

> Serverless boilerplate CLI tool: GitLab and GitHub CI/CD, DataDog, Multi-Region, and many more setups. Ready-to-deploy in a few seconds!

Latest version **1.8.0** (published 2022-01-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install create-full-sls-app
pnpm add create-full-sls-app
yarn add create-full-sls-app
bun add create-full-sls-app
```

Provides the command `create-full-sls-app`.

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.8.0 |
| Published | 2022-01-03 |
| First published | 2021-12-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 537.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Emin Bugra Saral |
| Maintainers | ebsaral |
| Keywords | serverless, gitlab, github, datadog, sonarcloud, sonarqube, yup, aws, lambda, aws-lambda, typescript, serverless-app, serverless-app-builder, serverless-app-creator, serverless-app-creator-cli, serverless-app-creator-cli-app, finn |

## Links

- npm: https://www.npmjs.com/package/create-full-sls-app
- Repository: https://github.com/finn-auto/create-full-sls-app
- Homepage: https://github.com/finn-auto/create-full-sls-app#readme
- Issues: https://github.com/finn-auto/create-full-sls-app/issues
- npm.io page: https://npm.io/package/create-full-sls-app

## Dependencies (4)

- [ejs](https://npm.io/package/ejs.md) ^3.1.6
- [yargs](https://npm.io/package/yargs.md) ^17.3.1
- [shelljs](https://npm.io/package/shelljs.md) ^0.8.4
- [inquirer](https://npm.io/package/inquirer.md) ^8.2.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.8.0 (latest) — 2022-01-03
- 1.7.0 — 2021-12-26

## README

# 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?

- [Gitlab](https://www.gitlab.com) CI/CD setup
- or [GitHub](https://www.github.com) Actions setup (not fully complete)
- [SonarCloud](https://www.sonarcloud.io) setup (optional)
- [DataDog](https://www.datadoghq.com/) setup (optional)
- [Sentry](https://www.sentry.io) setup
- [Yup](https://www.npmjs.com/package/yup) validation integration
- [Husky](https://github.com/typicode/husky) setup in place for pre-commit and pre-push
- [TypeScript](https://www.typescriptlang.org/), [Webpack](https://webpack.js.org/) 5, [serverless.yml](https://www.serverless.com/framework/docs/providers/aws/guide/serverless.yml) setups
- [Example API endpoint](https://github.com/ebsaral/create-full-sls-app/blob/1.4.0/templates/serverless-full-sls-app/src/handlers/status/index.ts) (with [middy](https://www.npmjs.com/package/middy) package and additional middlewares)
- A regional setup and default region is `eu-central`
- Multi-Region support (adding `us-east1`) (optional)

# Command Options List

| name                   | type          | default                 | description                                                  |
| ---------------------- | ------------- | ----------------------- | ------------------------------------------------------------ |
| template               | choices       | serverless-full-sls-app |                                                              |
| name                   | strict-string | required                | Project name (e.g dummy-service)                             |
| organization           | strict-string | required                | Organization name (e.g finn-auto)                            |
| gitSetup               | choices       | GitLab                  | Options: GitLab, GitHub                                      |
| mainBranch             | choices       | main                    | Options: main, master                                        |
| enableSonarCloud       | bool          | Y                       | Setup SonarCloud (Y/n)                                       |
| enableMultiRegion      | bool          | Y                       | Add us-east-1 and enable multi-region (Y/n)                  |
| enableDataDog          | bool          | Y                       | Enable DataDog in the setup (Y/n)                            |
| dataDogArnEuCentral    | string        | empty                   | DataDog EU ARN (only if DataDog is enabled)                  |
| dataDogArnUsEast       | string        | empty                   | DataDog US ARN (only if DataDog and multi-region is enabled) |
| memorySize             | number        | 256                     | Memory Size of Lambda in MB                                  |
| timeout                | number        | 10                      | Timeout of API endpoints in seconds                          |
| minimumCompressionSize | number        | 1024                    | Minimum Compression Size of API Gateway in MB                |
| maxRequestsPerSecond   | number        | 100                     | API Gateway Throttling Maximum Requests Per Second setting   |
| maxConcurrentRequests  | number        | 50                      | API Gateway Throttling Maximum Concurrent Requests setting   |
| developmentUrl         | string        | dev-service.domain.com  | Development service URL                                      |
| productionUrl          | string        | service.domain.com      | Production 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](https://www.saral.dev) <3

---
_Source: https://npm.io/package/create-full-sls-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
