This repository contains the code for implementing Single Sign-On (SSO) using a Dockerized SSO server and multiple frontend applications.
- Note: You must have Docker installed locally.
- Clone the repository:
git clone https://github.com/SomSingh23/SSO_CC_LAB
- Run the SSO server:
cd SSO_CC_LAB
cd sso_server
docker-compose up
-
Important Note: Once the SSO server is running, proceed with starting the frontend applications in development mode.
-
With the SSO server running in the background, navigate to each frontend application directory and execute the following commands:
-
Make sure your on the root directory i.e
/SSO_CC_LAB
and open 3 new terminal -
instead of
yarn or yarn install
you can usenpm i or npm install
-
instead of
yarn dev
you can usenpm run dev
# write these commands on terminal 1
cd application_1
yarn install # Install dependencies
yarn dev # Start the application in development mode
# write these commands on terminal 2
cd application_2
yarn install # Install dependencies
yarn dev # Start the application in development mode
# write these commands on terminal 3
cd application_3
yarn install # Install dependencies
yarn dev # Start the application in development mode