Skip to content

Commit

Permalink
feat: add TypeScript hello world template w/ Lambda Powertools integr…
Browse files Browse the repository at this point in the history
…ation (#193)

* feat: add TypeScript hello world template

* feat: change TypeScript hello world template to reflect new build proceess

* Update manifest to include new workflow

* initial commit powertools template

* parametrization

* various fixes

* updated manifest

* manifest-v2.json

* fix manifest-v2.json syntax error

Co-authored-by: Roman Boiko <[email protected]>
Co-authored-by: Daniel Mil <[email protected]>
Co-authored-by: EC2 Default User <[email protected]>
Co-authored-by: Benedikt Pauwels <[email protected]>
Co-authored-by: Mehmet Nuri Deveci <[email protected]>
  • Loading branch information
6 people authored Jun 27, 2022
1 parent 5df174d commit b057f88
Show file tree
Hide file tree
Showing 18 changed files with 1,022 additions and 0 deletions.
8 changes: 8 additions & 0 deletions manifest-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,14 @@
"appTemplate": "quick-start-web",
"packageType": "Zip",
"useCaseName": "Serverless API"
},
{
"directory": "nodejs14.x/cookiecutter-aws-sam-hello-powertools-typescript-nodejs",
"displayName": "Hello World Example TypeScript w/ Lambda Powertools",
"dependencyManager": "npm",
"appTemplate": "hello-world-powertools-typescript",
"packageType": "Zip",
"useCaseName": "Hello World Example"
}
],
"nodejs12.x": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,229 @@

# Created by https://www.toptal.com/developers/gitignore/api/osx,linux,python,windows,sam
# Edit at https://www.toptal.com/developers/gitignore?templates=osx,linux,python,windows,sam

### Linux ###
*~

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### OSX ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon

# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Python ###
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
parts/
sdist/
var/
wheels/
pip-wheel-metadata/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
pytestdebug.log

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/
doc/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
.python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
#poetry.lock

# PEP 582; used by e.g. github.com/David-OConnor/pyflow
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
# .env
.env/
.venv/
env/
venv/
ENV/
env.bak/
venv.bak/
pythonenv*

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# operating system-related files
# file properties cache/storage on macOS
*.DS_Store
# thumbnail cache on Windows
Thumbs.db

# profiling data
.prof


### SAM ###
# Ignore build directories for the AWS Serverless Application Model (SAM)
# Info: https://aws.amazon.com/serverless/sam/
# Docs: https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-reference.html

**/.aws-sam

### Windows ###
# Windows thumbnail cache files
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Dump file
*.stackdump

# Folder config file
[Dd]esktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msix
*.msm
*.msp

# Windows shortcuts
*.lnk

# End of https://www.toptal.com/developers/gitignore/api/osx,linux,python,windows,sam
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Cookiecutter NodeJS TypeScript Hello-world for SAM based Serverless App

A cookiecutter template to create a NodeJS TypeScript Hello world boilerplate using [Serverless Application Model (SAM)](https://github.com/awslabs/serverless-application-model).

## Requirements

* [AWS SAM CLI](https://github.com/awslabs/aws-sam-cli)

## Usage

Generate a boilerplate template in your current project directory using the following syntax:

* **NodeJS 14**: `sam init --runtime nodejs14.x`

> **NOTE**: ``--name`` allows you to specify a different project folder name (`sam-app` is the default)
# Credits

* This project has been generated with [Cookiecutter](https://github.com/audreyr/cookiecutter)

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"project_name": "Name of the project",
"runtime": "nodejs14.x",
"architectures": {
"value": []
},
"Powertools X-Ray Tracing": ["enabled","disabled"],
"Powertools Metrics": ["enabled","disabled"],
"Powertools Logging": ["enabled","disabled"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[install]
prefix=
Loading

0 comments on commit b057f88

Please sign in to comment.