Serverless boilerplate CLI tool: GitLab and GitHub CI/CD, DataDog, Multi-Region, and many more setups.

Overview

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

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 <3

You might also like...

A Serverless GraphQL Sample project using Apollo and Serverless Framework with TypeScript and Webpack.

Serverless GraphQL Boilerplate This is a base project with a structure that includes Serverless Framework, Apollo, TypeScript and Webpack. It can be d

Aug 23, 2022

AWS Lambda & Serverless - Developer Guide with Hands-on Labs. Develop thousands line of aws lambda functions interact to aws serverless services with real-world hands-on labs

AWS Lambda & Serverless - Developer Guide with Hands-on Labs. Develop thousands line of aws lambda functions interact to aws serverless services with real-world hands-on labs

AWS Lambda & Serverless - Developer Guide with Hands-on Labs UDEMY COURSE WITH DISCOUNTED - Step by Step Development of this Repository - https://www

Dec 17, 2022

💅 A ready-to-go with a well-thought-out structure Electron app boilerplate with ReactJS, TypeScript, CSS / SASS modules, SWC, Eslint, Prettier, GitHub Action releases and more.

💅 A ready-to-go with a well-thought-out structure Electron app boilerplate with ReactJS, TypeScript, CSS / SASS modules, SWC, Eslint, Prettier, GitHub Action releases and more.

Electron App 💅  A ready-to-go with a well-thought-out structure Electron app boilerplate with ReactJS, TypeScript, CSS / SASS modules, SWC, Eslint, P

Dec 29, 2022

Example architecture of a serverless multi-tenant environment

Example architecture of a serverless multi-tenant environment

Serverless Multi-tenancy Reference Architecture Example architecture of a serverless multi-tenant environment. Description This repository builds a mu

Oct 17, 2022

This project is for hacktoberfest to encourage new developer and open source developers to contribute to open source and improve skills which require debugging, write testable code, industry standards, problem solving and many more,

This project is for hacktoberfest to encourage new developer and open source developers to contribute to open source and improve skills which require debugging, write testable code, industry standards, problem solving and many more,

🚀 Blog project for hacktoberfest In this repository, you can find issues related to a blog project that is built on top of Next.js. The project is a

Oct 9, 2022

Math Calc is a simple algebra calculator with options for basic addition, subtraction, multiplication, and division as well as many more mathematical properties.

Math Calc is a simple algebra calculator with options for basic addition, subtraction, multiplication, and division as well as many more mathematical properties.

Math-Calc Math Calc is a simple algebra calculator with options for basic addition, subtraction, multiplication, and division as well as many more mat

Dec 25, 2021

All in one YouTube App with downloader , background player and many more features.

All in one YouTube App with downloader , background player and many more features.

YT PRO Download YT PRO Features Video Downloader Ads Blocker Picture in Picture Mode Shows Number of Dislikes Background Audio Player Auto Updation of

Dec 31, 2022

WIP - Boilerplate for Node.js + TypeScript + Prisma + Serverless

Boilerplate Node.js + TypeScript for Serverless WIP - Boilerplate Node.js + TypeScript + Prisma + Serverless Setup Update project information In serve

Oct 16, 2022

Testing how many commit can be committed to GitHub. So far 12,225,265 commits

GitHub's Commit Capacity. Motivation Checking some relations and capabilities between client-server model, GitHub & Git. Goal Making this repo most co

Mar 25, 2022
Comments
  • Add version prune plugin

    Add version prune plugin

    There is a limit of 75 GB in S3 for lambda versions. By default, they are turned on.

    Use the prune plugin to control old versions.

    https://github.com/claygregory/serverless-prune-plugin

    enhancement 
    opened by ebsaral 0
  • Setup secure Access-Control-Allow-Origin for production

    Setup secure Access-Control-Allow-Origin for production

    Situation

    Currently, Access-Control-Allow-Origin is set to '*' in the template which means that the service is public. This is a security issue.

    Requirements

    • Setup production domain (at least provide an option) for Access-Control-Allow-Origin
    enhancement 
    opened by ebsaral 0
Releases(1.7.0)
Owner
Emin Buğra Saral
Simplicity within a certain complexity.
Emin Buğra Saral
Tool for GitHub/GitLab to keep Repositories/Projects you are interested in and their Pull/Merge Requests in desktop Tray Menu

Tool for GitHub/GitLab to keep Repositories/Projects you are interested in and their Pull/Merge Requests in desktop Tray Menu. More info in User Guide.

Oleksii Bilyk 5 Jul 31, 2022
A refined tool for exploring open-source projects on GitHub with a file tree, rich Markdown and image previews, multi-pane multi-tab layouts and first-class support for Ink syntax highlighting.

Ink codebase browser, "Kin" ?? The Ink codebase browser is a tool to explore open-source code on GitHub, especially my side projects written in the In

Linus Lee 20 Oct 30, 2022
Everynode allows you to run any version of Node.js in AWS Lambda, in any commercial AWS region

Run Any Node.js Version in AWS Lambda Everynode allows you to run any version of Node.js in AWS Lambda, in any commercial AWS region. We add support f

Fusebit 116 Dec 15, 2022
📂 Listado de empresas con trabajos tecnológicos dentro de la Región de Murcia.

?? Murcia Tech Hub Listado de empresas con trabajos tecnológicos dentro de la Región de Murcia. Si conoces alguna empresa más o puedes poner algún dat

MurciaDev 9 Jun 30, 2022
Vite plugin to client bundle i18next locales composited from one to many json/yaml files from one to many libraries. Zero config HMR support included.

vite-plugin-i18next-loader yarn add -D vite-plugin-i18next-loader Vite plugin to client bundle i18next locales composited from one to many json/yaml f

AlienFast 4 Nov 30, 2022
A CLI tool to create a NodeJS project with TypeScript CTSP is a CLI tool to make easier to start a new NodeJS project and configure Typescript on it.

CTSP- Create TS Project A CLI tool to create a NodeJS project with TypeScript CTSP is a CLI tool to make easier to start a new NodeJS project and conf

Jean Rodríguez 7 Sep 13, 2022
Software for the next generation of social media. https://gitlab.com/soapbox-pub/soapbox-fe

Soapbox FE Soapbox FE is a frontend for Mastodon and Pleroma with a focus on custom branding and ease of use. It's part of the Soapbox project. Try it

Soapbox 52 Dec 30, 2022
🫥 Copy repository without the git information for self-managed gitlab, very fast.

English | 简体中文 degitlab ?? degitlab -> de-git-lab Copy repository without the git information for self-managed gitlab, very fast. Why? In self-managed

東澔 6 Oct 16, 2022
This is a bot for Telegram that can be used to receive webhook notifications from Gitlab. It is built with the Next.js API.

Telegram Bot for Gitlab Webhook ?? Note This project is still in development. Just relax ?? This is a bot for Telegram that can be used to receive web

M. Zakiyuddin Munziri 2 Oct 22, 2022
Learn Web 2.0 and Web 3.0 Development using Next.js, Typescript, AWS CDK, AWS Serverless, Ethereum and AWS Aurora Serverless

Learn Web 2.0 Cloud and Web 3.0 Development in Baby Steps In this course repo we will learn Web 2.0 cloud development using the latest state of the ar

Panacloud Multi-Cloud Internet-Scale Modern Global Apps 89 Jan 3, 2023