Skip to content

This Repo uses Serverless, Node JS, and React JS technologies

Notifications You must be signed in to change notification settings

mg4u/capston-cloud-serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Serverless Wishlist App

Serverless Wishlist application where a user can pen down their wishs and inspired images.

Functionality

  • The application allows users to create, update, delete Wishes.
  • The application allows users to upload a file.
  • The application only displays wishes of the logged in user.
  • A user needs to authenticate in order to use an application

Codebase

  • The code is split into multiple layers separating business logic from I/O related code.
  • Code is implemented using async/await and Promises without using callbacks.

Best Pratices

  • All resources in the application are defined in the serverless.yml file.
  • Each function has its own set of permissions.
  • Application has sufficient monitoring.
  • HTTP requests are validated.

Architecture

  • Data is stored in a table with a composite key.
KeySchema:
      - AttributeName: partitionKey
        KeyType: HASH
      - AttributeName: sortKey
        KeyType: RANGE
  • items are fetched using the query() method and not scan() method (which is less efficient on large datasets)

How to run the application

Backend

To deploy an application run the following commands:

cd backend
npm install
npx serverless deploy -v

Client

To run a client application first edit the client/src/config.ts file to set correct parameters. And then run the following commands:

cd client
npm install
npm run start

About

This Repo uses Serverless, Node JS, and React JS technologies

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published