phantuanvi / Project5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

List items

The application keeps track of the list of items need to buy when you go shopping

Main functions of the application.

  • Add item
  • Add an image for the item
  • Delete item
  • Show a list of items
  • Show details of the item
  • Check purchased items

Prerequisites

  • Auth0 account
  • NodeJS version up to 14.xx
  • Serverless
    npm install -g serverless@3.32.0
    serverless --version
    • Login and configure serverless to use the AWS credentials
    # Login to your dashboard from the CLI. It will ask to open your browser and finish the process.
    serverless login
    # Configure serverless to use the AWS credentials to deploy the application
    # You need to have a pair of Access key (YOUR_ACCESS_KEY_ID and YOUR_SECRET_KEY) of an IAM user with Admin access permissions
    sls config credentials --provider aws --key YOUR_ACCESS_KEY_ID --secret YOUR_SECRET_KEY --profile serverless

How to run the application

Backend

To deploy an application run the following commands:

cd backend
npm install
sls deploy -v

Frontend

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


Languages

Language:TypeScript 88.1%Language:JavaScript 7.0%Language:HTML 3.2%Language:CSS 1.8%