Skip to content

A basic counter application with resources to create a serverless backend using AWS Lambas

Notifications You must be signed in to change notification settings

dtserekhman-starz/serverless-counter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Counter

A basic counter UI to be integrated with a serverless backend using AWS Lambdas. The src folder contains UI resources and the server folder contains code for initializing the lambda functions and building the API gateway.

This UI was bootstrapped with Create React App.

Useful scripts

To install all dependencies run either yarn install or npm install in your terminal

To build and start the UI, run npm start in your terminal

Integrating the Back-End

Build one lambda function based on decrementCounterLambda.js and one lambda function based on incrementCounterLambda.js

Generate and API Gateway API based on the swaggerWithApiGatewayExtensions.yaml to save yourself some configuration time. You can also build a similar API with the swagger.yaml but don't forget to assign values to each of your CORS headers.

Assign your lambda functions to the appropriate routes in the API gateway.

Deploy your API, then copy/paste your API url into the appConfig.json file in the src folder.

This should get your serverless backend up and running!

About

A basic counter application with resources to create a serverless backend using AWS Lambas

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 76.1%
  • HTML 15.6%
  • CSS 8.3%