Skip to content

Commit

Permalink
Kfone apps added.
Browse files Browse the repository at this point in the history
(cherry picked from commit 1fd64ca5b6d3b4b095dc6b9405a2bef86077c43a)
  • Loading branch information
ashendes committed Apr 28, 2023
1 parent b34bbd9 commit 2b7d6ce
Show file tree
Hide file tree
Showing 144 changed files with 64,005 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ hs_err_pid*
replay_pid*
*.DS_Store
*.code-workspace

*/.env
.idea
10 changes: 10 additions & 0 deletions src/apps/kfone-customer-support/.env.example
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>
24 changes: 24 additions & 0 deletions src/apps/kfone-customer-support/.gitignore
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*
1 change: 1 addition & 0 deletions src/apps/kfone-customer-support/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
auto-install-peers=true
59 changes: 59 additions & 0 deletions src/apps/kfone-customer-support/README.md
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
```
&nbsp;
##### 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 🎉
Loading

0 comments on commit 2b7d6ce

Please sign in to comment.