-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify built-in quickstarts to a simple hello world (#849)
- Loading branch information
1 parent
29e2250
commit 9600778
Showing
41 changed files
with
1,314 additions
and
647 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 0 additions & 13 deletions
13
samcli/local/init/templates/cookiecutter-aws-sam-hello-nodejs/Pipfile
This file was deleted.
Oops, something went wrong.
34 changes: 6 additions & 28 deletions
34
samcli/local/init/templates/cookiecutter-aws-sam-hello-nodejs/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,20 @@ | ||
# Cookiecutter SAM for Node Lambda functions | ||
# Cookiecutter NodeJS Hello-world for SAM based Serverless App | ||
|
||
This is a [Cookiecutter](https://github.com/audreyr/cookiecutter) template to create a Serverless Hello World App based on Serverless Application Model (SAM) and NodeJS. | ||
|
||
It is important to note that you should not try to `git clone` this project but use `cookiecutter` CLI instead as ``{{cookiecutter.project_name}}`` will be rendered based on your input and therefore all variables and files will be rendered properly. | ||
A cookiecutter template to create a NodeJS Hello world boilerplate using [Serverless Application Model (SAM)](https://github.com/awslabs/serverless-application-model). | ||
|
||
## Requirements | ||
|
||
Install `cookiecutter` command line: | ||
|
||
**Pip users**: | ||
|
||
* `pip install cookiecutter` | ||
|
||
**Homebrew users**: | ||
|
||
* `brew install cookiecutter` | ||
|
||
**Windows or Pipenv users**: | ||
|
||
* `pipenv install cookiecutter` | ||
|
||
**NOTE**: [`Pipenv`](https://github.com/pypa/pipenv) is the new and recommended Python packaging tool that works across multiple platforms and makes Windows a first-class citizen. | ||
* [AWS SAM CLI](https://github.com/awslabs/aws-sam-cli) | ||
|
||
## Usage | ||
|
||
Generate a new SAM based Serverless App: `cookiecutter gh:aws-samples/cookiecutter-aws-sam-hello-nodejs`. | ||
|
||
You'll be prompted a few questions to help this cookiecutter template to scaffold this project and after its completed you should see a new folder at your current path with the name of the project you gave as input. | ||
Generate a boilerplate template in your current project directory using the following syntax: | ||
|
||
**NOTE**: After you understand how cookiecutter works (cookiecutter.json, mainly), you can fork this repo and apply your own mechanisms to accelerate your development process and this can be followed for any programming language and OS. | ||
* **NodeJS 8**: `sam init --runtime nodejs8.10` | ||
|
||
> **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) | ||
|
||
|
||
License | ||
------- | ||
|
||
This project is licensed under the terms of the [MIT License with no attribution](/LICENSE) |
41 changes: 0 additions & 41 deletions
41
samcli/local/init/templates/cookiecutter-aws-sam-hello-nodejs/tests/test_cookiecutter.py
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.