Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

App to scan badge and extract employee ID

Notifications You must be signed in to change notification settings

seasoprano/badge-scanner-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

badge-scanner-app

App to scan badge and extract employee ID

Getting started

Web App

  • CD to app/
  • Run npm i to install packages
  • Create .env.development file, then enter below
    REGION=<region - e.g. us-east-1>
    COGNITO_IDENTITYPOOL_ID=<id>
    COGNITO_USERPOOL_ID=<id>
    COGNITO_USERPOOL_CLIENT_ID=<id>
    APPSYNC_API_KEY=<key>
    APPSYNC_ENDPOINT=<endpoint>
    
  • Run npm start (or gatsby develop)

Backend

  • CD to stack/
  • Run npm i to install packages
  • Run sls offline

Deploy

  • Ensure you already logged in to Serverless
    • cd to stack/, then run serverless and follow steps
  • Ensure .env.production file is setup correctly (similar to .env.development, but different keys/ids)
  • CD to root folder
  • Open bash (Windows) or terminal (Mac), then run . deploy.sh

Deploy using stage

  • cd to stack/
  • Run sls deploy --stage <stage_name> (allowed stages are currently: dev, qa, prod)

FAQs

  1. How to get Cognito info?
  • cd to stack/, then run sls info -v

About

App to scan badge and extract employee ID

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published