-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit 1fd64ca5b6d3b4b095dc6b9405a2bef86077c43a)
- Loading branch information
Showing
144 changed files
with
64,005 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,6 @@ hs_err_pid* | |
replay_pid* | ||
*.DS_Store | ||
*.code-workspace | ||
|
||
*/.env | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
NODE_ENV=development | ||
HTTPS=true | ||
PORT=3000 | ||
REACT_APP_ASGARDEO_CLIENT_ID=<CLIENT ID TAKEN FROM ASGARDEO CONSOLE> | ||
REACT_APP_ASGARDEO_BASE_URL=<BASE URL TAKEN FROM ASGARDEO CONSOLE> | ||
REACT_APP_ASGARDEO_CALLBACK_URL=<CALLBACK URL AFTER A SUCCESSFUL AUTHENTICATION> | ||
REACT_APP_CHOREO_CLIENT_ID=<CONSUMER ID TAKEN FROM ASGARDEO CONSOLE> | ||
REACT_APP_BASE_API_ENDPOINT=<BASE URL OF CHOREO HOSTED API> | ||
REACT_APP_CHOREO_ORGANIZATION=<ORGANIZATION OF CHOREO HOSTED API> | ||
REACT_APP_CHOREO_TOKEN_ENDPOINT=<CHOREO TOKEN ENDPOINT> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
auto-install-peers=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# Kfone Customer Support | ||
|
||
Customer Support portal of the Kfone demo telecommunication company. This includes; | ||
- Personal user information and cases | ||
- Enterprise user and prospect information and cases | ||
|
||
## Prerequisites | ||
|
||
Install Node.JS LTS from https://nodejs.org/en/download/. | ||
|
||
Verify if you have the LTS version installed. | ||
|
||
```bash | ||
node -v | ||
npm -v | ||
``` | ||
|
||
## Setup | ||
|
||
```bash | ||
git clone https://github.com/wso2/devrel.git | ||
|
||
git checkout Kubecon-demos | ||
|
||
cd kfone-customer-support | ||
``` | ||
| ||
##### Let's setup the environment variables. | ||
|
||
Get a copy of the `.env.example` file and rename it as .env. Then change the below values, as per the description provided in each .env variable. | ||
|
||
```json | ||
NODE_ENV=development | ||
HTTPS=true | ||
PORT=3000 | ||
REACT_APP_ASGARDEO_CLIENT_ID=<CLIENT ID OF THE OIDC APPLICATION REGISTERED IN ASGARDEO> | ||
REACT_APP_ASGARDEO_BASE_URL=<BASE URL OF THE ASGARDEO API ENDPOINT (Eg. https://api.asgardeo.io/t/kfone)> | ||
REACT_APP_ASGARDEO_CALLBACK_URL=<CALLBACK URL (Eg. https://localhost:3000)> | ||
REACT_APP_CHOREO_CLIENT_ID=<CONSUMER ID OF THE APPLICATION REGISTERED IN CHOREO> | ||
REACT_APP_BASE_API_ENDPOINT=<BASE URL OF CHOREO HOSTED API> | ||
REACT_APP_CHOREO_ORGANIZATION=<ORGANIZATION OF CHOREO HOSTED API> | ||
REACT_APP_CHOREO_TOKEN_ENDPOINT=<CHOREO TOKEN ENDPOINT> | ||
``` | ||
|
||
## Install Dependencies | ||
|
||
From the project root, install dependencies using the below command. | ||
|
||
```bash | ||
pnpm install | ||
``` | ||
|
||
## Bootstrap Application | ||
|
||
```bash | ||
pnpm start | ||
``` | ||
|
||
The application should be up and running in port 3000 🎉 |
Oops, something went wrong.