Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerwelin committed May 5, 2020
1 parent 6d30b95 commit 740b068
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ $ ./alviss new-api --project-name my-api-project --api-endpoint regional --langu
Then just follow the instructions on the screen. It's that simple!


Demo
--------

<img src="https://i.imgur.com/Zy8PG73.gif" />


Compliments
--------
Special thanks goes to [Axfood IT AB](https://www.axfood.se/) for letting me opensource this
Expand Down
4 changes: 3 additions & 1 deletion new-api.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,16 @@ func (tmpl *tmplData) bootstrapAPI() error {
green := color.New(color.FgGreen).SprintFunc()
consoleStdOut := "Success! Created API GW project at %s\nInside that directory," +
"you can run several commands:\n\n\t%s\n\t\t" +
"installs dependencies for all the Lambda source code\n\t%s\n\t\t" +
"installs dependencies for all the Lambda functions\n\t%s\n\t\t" +
"run your api locally during development\n\t%s\n\t\t" +
"creates all needed AWS resources and deploys the code" +
"\n\n" +
"However I recommend taking a look at the README file first\n\n"

//fmt.Printf("Success! Created API GW project at %s\nInside that directory, you can run several commands:\n\n\t%s\n\t\tcreates a zip of your code and dependencies and uploads it to S3\n\t%s\n\t\tdeploys the specified CloudFormation/SAM template by creating and then executing a change set\n\nHowever I recommend taking a look at the README file first\n\n", green(tmpl.APIProjectName+"/"), green("sam package --template-file apigw.yml --output-template-file out.yaml --s3-bucket Your-S3-bucket"), green("aws cloudformation deploy --template-file ./out.yaml --stack-name my-api-stack --capabilities CAPABILITY_IAM"))
fmt.Printf(consoleStdOut, green(tmpl.APIProjectName+"/"),
green("sam build --template-file apigw.yml"),
green("sam local start-api"),
green("sam deploy --guided"))

return nil
Expand Down
3 changes: 2 additions & 1 deletion tmpl-readme.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ To create the API GW project you will need an AWS account and generate API keys
### Install Dependencies
You need the following dependencies to be able to build and deploy the api project:
* A working Pyhton installation
* A working Python installation
* awscli
* sam (serverless application model)
* docker (optional, only if you plan to run the api locally)
**Install awscli and SAM**
` + "```" + `bash
Expand Down

0 comments on commit 740b068

Please sign in to comment.