Skip to content

ayshsandu/ecomm-pet-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Run the app on your own

  1. Get the backend APIs from https://github.com/ayshsandu/code-challenge-2023/tree/restAPI and get it hosted in Choreo.

  2. Configure Asgardeo as the Identity Provider.

  3. Add the following environment variable to the .env file located in the directory of this project.

    REACT_APP_SIGN_IN_REDIRECT_URL=http://localhost:3000
    REACT_APP_SIGN_OUT_REDIRECT_URL=http://localhost:3000
    REACT_APP_CLIENT_ID=<CLIEN ID of the Application>
    REACT_APP_BASE_URL=https://api.asgardeo.io/t/<ASGARDEO ORG NAME>
    REACT_APP_SCOPE=openid email profile urn:ayeshaecomm:ecommercerestapi:update-items urn:ayeshaecomm:ecommercerestapi:add-items
    REACT_APP_ADD_ITEMS_SCOPE=urn:ayeshaecomm:ecommercerestapi:add-items
    REACT_APP_RESOURCE_SERVER_URL=<BASE URL of the Backend APIS>
    REACT_APP_APPLICATION_NAME=<Name of the application registered in Asgardeo>
    
  4. Start the app by npm start

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.6%
  • HTML 5.6%
  • CSS 3.3%
  • Other 0.5%