Grocery Purchase app with serverless AWS Lambda + DynamoDB + React
App Demo https://media.giphy.com/media/1sw6syoMDm6QEu9Stk/giphy.gif
What this app about ?
This is a mock grocery purchase app built on the serverless technology.
Motivation
To explore the limit of serverless framework
Tech Stack
Functionalities
App will have users who can register / login
To be built
Prerequisites:
Accounts Required to deploy on cloud
To Setup Backend point 10
To setup Backend:
utils/config.js
and change the region as per that. Choose db url locally or accordingly on Cloud. For more details look at https://docs.aws.amazon.com/general/latest/gr/rande.html
npm run initialize-db
to create all db tables with populated value (Local / cloud depending upon the config url)npm run reinitialize-db
to flush all the data present in the tables.npm install -g serverless
to install serverless globallynpm install
in the backend repository.npm run start
will start the serverless backend offline.serverles.yaml
as per your cognito pool to have authenticated routes.To setup Frontend:
packages/CB-serverless-frontend
folder with below variables:
REACT_APP_REGION=XXXXXX
REACT_APP_URL=http://localhost:3000
REACT_APP_REGION=XXXXXX
REACT_APP_USER_POOL_ID=XXXXXX
REACT_APP_APP_CLIENT_ID=XXXXXX
REACT_APP_IDENTITY_POOL_ID=XXXXXXyou can use 4242 4242 4242 4242 for card number or refer stripe for more.
npm install
to installnpm run start
to start