Dapr Example
Requirements
- Docker (installation)
- Dapr (installation)
How to run locally
Backend
Setup
- Sign in to your Okta developer dashboard and navigate to Applications > Add Application.
- Choose
Web
and click Next. - Set all URLs to
http://localhost:8080
- Check the box
Client Credentials
and click Done - Copy the
Client ID
and replace${yourClientId}
inbackend/components/okta.yaml
. - Copy the
Okta domain
and replace${yourOktaDomain}
inbackend/components/okta.yaml
. - Go to API > Authroization Servers > default > Scopes.
- Create a new scope named
yourOwnScope
, it has to match the scope inbackend/components/okta.yaml
; You only need to choose a name and click Create.
yourOwnScope
you can name the scope whatever.
cd backend
npm i
npm start
Frontend
Setup
- Sign in to your Okta developer dashboard and navigate to Applications > Add Application.
- Choose
Single-Page App
and click Next. - Set
http://localhost:8080
as aLogin redirect URI
and click Done. - Copy the
Client ID
and replace${yourClientId}
infrontend/index.html
. - Copy the
Okta domain
and replace${yourOktaDomain}
infrontend/index.html
.
Start Frontend
cd frontend
npm i
npm start