Skip to content

descope-sample-apps/b2c-retail-sample-app

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

28cb41d · Nov 12, 2023
Jun 21, 2023
Aug 18, 2023
Feb 27, 2023
Aug 18, 2023
Apr 20, 2023
Dec 15, 2022
Apr 20, 2023
Dec 2, 2022
Jun 21, 2023
Jun 21, 2023
Nov 12, 2023
Jun 7, 2023
Nov 12, 2023

Repository files navigation

Welcome to Tee-Hee-Tees

This is a sample consumer app built by Descope to showcase the Descope Flows functionality. To experience the sign-up or sign-in experience - click on Login. While logged in, you can experience the step-up authentication flow by adding a T-shirt to your cart and then trying to check out (no credit card required).

Set up

In order to launch this app:

1. Clone the repo

git clone git@github.com:descope-sample-apps/b2c-retail-sample-app.git

2. Set up Descope environment variables in .env file

REACT_APP_DESCOPE_PROJECT_ID="YOUR PROJECT ID" // Required for Descope authentication
REACT_APP_DESCOPE_SIGN_IN_FLOW_ID="sign-up-or-in" // Optional, if you would like to use a flow other than sign-up-or-in
REACT_APP_DESCOPE_MANAGEMENT_KEY="YOUR MANAGEMENT KEY" // Optional, if you would like to run E2E tests

You can get your project-id here. You can get this flow-id from the Flows page here.

3. Install dependencies

You can use npm or yarn, but we recommend using yarn. If it isn't already installed on your machine, the instructions on how to do so can be found here. After yarn is installed, run this command:

yarn install

4. Start the app

Run this command to start the app:

yarn start

5. Open the app

Browse to https://localhost:3000

Testing

To run Jest unit tests:

yarn test

To run Cypress E2E tests:

yarn run cypress open

Learn More

To learn more please see the Descope Documentation and API reference page.

Contact Us

If you need help you can contact us

License

The Tee-Hee-Tees app is licensed for use under the terms and conditions of the MIT license Agreement.