Skip to content

Commit 2be4648

Browse files
authored
Merge branch 'development' into dashbird-teh
2 parents e8686b6 + 4c76fab commit 2be4648

4 files changed

Lines changed: 28 additions & 4 deletions

File tree

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
# Welcome to the RobinHood for Reddit
1+
# Welcome to the RobinHood for Reddit Sample
2+
3+
This small tutorial will teach you how to do the following things
4+
5+
- Deploy to LocalStack
6+
- Deploy to AWS
7+
- Create and API Gateway connected to a Lambda
8+
- Invoke the Lambda direetly and view it's logs
9+
- Test the API Gateway endpoint and view the resulting Lambda Invocation Logs, API Gateway Logs, and the Localstack Logs if connected to local
10+
11+
![how-reddit-and-elon-used-robinhood-to-take-over-the-financial-world.png](https://s3.us-west-2.amazonaws.com/robinhood-for-reddit/how-reddit-and-elon-used-robinhood-to-take-over-the-financial-world.png)
12+
13+
14+
## Setup
15+
- download code
16+
- yarn install
17+
18+
## Run Tests
19+
- yarn test
20+
21+
## Deploy
22+
- yarn deploy
23+
24+
Don't forget to Star this repo so you will be notified of other interesting Serverless and Container based cloud examples.

sample-apps/robinhood-for-reddit/handlers/hotStock/hotStockHandler.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ hotStockHandler:
66
# cors: ${file(handlers/_base/cors.yml):cors}
77
method: get
88
environment:
9-
VERBOSE: ${self:custom.verbose.${opt:stage}, false}
9+
VERBOSE: false

sample-apps/robinhood-for-reddit/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"scripts": {
3+
"deploy": "sls deploy",
34
"test": "mocha -r ts-node/register/transpile-only tests/setup.ts \"tests/handlers/**/*.test.ts\" --timeout 30000 --exit"
45
},
56
"dependencies": {

sample-apps/robinhood-for-reddit/serverless.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ service: robinhood-for-reddit
22

33
provider:
44
name: aws
5-
runtime: nodejs10.x
5+
runtime: nodejs12.x
66
memorySize: 256
77
region: us-east-1
8-
stage: ${opt:stage, 'local'}
8+
stage: dev
99
timeout: 30
1010
versionFunctions: true
1111

0 commit comments

Comments
 (0)