Skip to content

Latest commit

 

History

History
50 lines (31 loc) · 1.43 KB

README.md

File metadata and controls

50 lines (31 loc) · 1.43 KB

Simple Popup Authorization with AccountsSDK

This project was bootstrapped using LiveChat Developer Console CLI

This app was created as the follow-up to the following blog post: Stubbing OAuth Popup Authorization with Cypress.

🚀 Getting Started

Install dependecies

npm install

Start local development server:

npm run dev

Open the Cypress App:

npm run cy:open

If you would like to correctly authorize outside of the Cypress tests, you need to set up your own LiveChat OAuth Client. You can learn more about that here: Setup a LiveChat OAuth Client. Then, you should replace the lcClientId inside of the /lib/config.ts with the correct ClientID.

⚙️ Available Scripts

dev

Runs the app in the development mode. Open http://localhost:3000 to view it in your browser. The page will reload when you make changes. You may also see any lint errors in the console.

build

Builds the app for production to the .next folder.

start

Starts production ready Next.js web server.

cy:open

Opens the Cypress App.

cy:open

Runs the Cypress tests in the headless mode.