GitXplorerGitXplorer
b

serverless-hustl

public
17 stars
4 forks
0 issues

Commits

List of commits on branch master.
Verified
beb044614146a973fdc0e1d1f268c1ed967d5ad8

update json to 2018 schedule

bbdougie committed 7 years ago
Unverified
ee14d5ca59fc3deccfdf49a39e3ac6f03d62a9c8

Update README.md

bbdougie committed 7 years ago
Unverified
f633f7b81856f8cb7bed4358c8f9675c94e2b773

Update README.md

bbdougie committed 7 years ago
Unverified
e59b765479cd0fd7968472446468b0e018b01fef

Update README.md

bbdougie committed 7 years ago
Unverified
446f2de56e6e4de545182dea876fea5f21e8e954

Update README.md

bbdougie committed 7 years ago
Unverified
9ea6be9eb716d7dfc5755335c8bd30490741b7bd

removes yml errors

bbdougie committed 8 years ago

README

The README file for this repository.

serverless-hustl

Hustlin is a project I created to let me know when there is a home baseball game happening. I get notifications every morning so I can plan my day around not using public transportation before, after, or during baseball games.

The repo contains the code for that JSON API and is powered by a Lambda function that reads from a DynamoDB table. The code for the front-end react app can be found at bdougie/hustlin-react and mobile app at bdougie/HusslnMobile.

Notifications are sent via Postmark every morning at 10am UTC. The code for that can be found at bdougie/scheduled-hustlin-notifications.

setup

git clone https://github.com/bdougie/serverless-hustl
cd serverless-hustl

npm install

Serverless Configuration

This repo leverages the serverless framework to deploy to aws, refer to their documentation for setup instructions.

Deploy

In order to deploy the you endpoint simply run

serverless deploy

The expected result should be similar to:

Serverless: Packaging service...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service .zip file to S3 (4.2 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
................
Serverless: Stack update finished...
Service Information
service: slshustl
stage: dev
region: us-west-1
api keys:
  None
endpoints:
  GET - https://...execute-api.us-west-1.amazonaws.com/dev/hello
  POST - https://...execute-api.us-west-1.amazonaws.com/dev/seed
  GET - https://...execute-api.us-west-1.amazonaws.com/dev/games
  GET - https://...execute-api.us-west-1.amazonaws.com/dev/today
functions:
  hello: slshustl-dev-hello
  seed: slshustl-dev-seed
  games: slshustl-dev-games
  today: slshustl-dev-today

There is no additional step required. Your defined schedule becomes active right away after deployment.

Usage

To test your function remotely:

sls invoke -f today