Skip to content

Commit 160aef5

Browse files
committed
Update README with project info
1 parent 7701962 commit 160aef5

1 file changed

Lines changed: 14 additions & 25 deletions

File tree

README.md

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Spring Boot API with React UI
1+
# JUG Tours with Spring Boot and React
22

3-
This example app shows how to create a Spring Boot API and display its data with a React UI.
3+
This example app shows how to create a Spring Boot API and CRUD (create, read, update, and delete) its data with a React app.
44

5-
Please read [Bootiful Development with Spring Boot and React](https://developer.okta.com/blog/2017/12/06/bootiful-development-with-spring-boot-and-react) to see how this app was created.
5+
<!--Please read []() to see how this app was created.-->
66

77
**Prerequisites:** [Java 8](http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html) and [Node.js](https://nodejs.org/).
88

@@ -18,39 +18,40 @@ Please read [Bootiful Development with Spring Boot and React](https://developer.
1818
To install this example application, run the following commands:
1919

2020
```bash
21-
git clone https://github.com/oktadeveloper/spring-boot-react-example.git
22-
cd spring-boot-react-example
21+
git clone https://github.com/oktadeveloper/okta-spring-boot-react-crud-example.git spring-react
22+
cd spring-react
2323
```
2424

2525
This will get a copy of the project installed locally. To install all of its dependencies and start each app, follow the instructions below.
2626

27-
To run the server, cd into the `server` folder and run:
27+
To run the server, run:
2828

2929
```bash
3030
./mvnw spring-boot:run
3131
```
3232

33-
To run the client, cd into the `client` folder and run:
33+
To run the client, cd into the `app` folder and run:
3434

3535
```bash
3636
yarn && yarn start
3737
```
3838

39-
The primary example (without authentication) is in the `master` branch, while the Okta integration is in the `okta` branch. To check out the Okta branch on your local machine, run the following command.
39+
You can also run everything using Maven:
4040

4141
```bash
42-
git checkout okta
42+
./mvnw package -Pprod
43+
java -jar target/*.jar
4344
```
4445

4546
### Create an Application in Okta
4647

47-
You will need to [create an OpenID Connect Application in Okta](https://developer.okta.com/blog/2017/12/06/bootiful-development-with-spring-boot-and-react#create-an-oidc-app-in-okta) to get your values to perform authentication.
48+
You will need to [create an OIDC Application in Okta]() to get your values to perform authentication.
4849

49-
Log in to your Okta Developer account (or [sign up](https://developer.okta.com/signup/) if you don’t have an account) and navigate to **Applications** > **Add Application**. Click **Single-Page App**, click **Next**, and give the app a name you’ll remember. Change all instances of `localhost:8080` to `localhost:3000` and click **Done**.
50+
Log in to your Okta Developer account (or [sign up](https://developer.okta.com/signup/) if you don’t have an account) and navigate to **Applications** > **Add Application**. Click **Web**, click **Next**, and give the app a name you’ll remember. Add `http://localhost:8080/login` as a login redirect URI and click **Done**.
5051

5152
#### Server Configuration
5253

53-
Set the `issuer` and copy the `clientId` into `server/src/main/resources/application.properties`.
54+
Set the `issuer` and copy the `clientId` into `src/main/resources/application.yml`.
5455

5556
**NOTE:** The value of `{yourOktaDomain}` should be something like `dev-123456.oktapreview.com`. Make sure you don't include `-admin` in the value!
5657

@@ -59,18 +60,6 @@ okta.oauth2.issuer=https://{yourOktaDomain}/oauth2/default
5960
okta.oauth2.clientId={clientId}
6061
```
6162

62-
#### Client Configuration
63-
64-
Set the `issuer` and copy the `clientId` into `client/src/App.tsx`.
65-
66-
```typescript
67-
const config = {
68-
issuer: 'https://{yourOktaDomain}/oauth2/default',
69-
redirectUri: window.location.origin + '/implicit/callback',
70-
clientId: '{clientId}'
71-
};
72-
```
73-
7463
## Links
7564

7665
This example uses the following libraries provided by Okta:
@@ -80,7 +69,7 @@ This example uses the following libraries provided by Okta:
8069

8170
## Help
8271

83-
Please post any questions as comments on the [blog post](https://developer.okta.com/blog/2017/12/06/bootiful-development-with-spring-boot-and-react), or visit our [Okta Developer Forums](https://devforum.okta.com/). You can also email developers@okta.com if you would like to create a support ticket.
72+
Please post any questions as comments on the [blog post](), or visit our [Okta Developer Forums](https://devforum.okta.com/). You can also email developers@okta.com if you would like to create a support ticket.
8473

8574
## License
8675

0 commit comments

Comments
 (0)