Giter Site home page Giter Site logo

it9good / admin-okta-spring-boot-vue-crud-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oktadev/okta-spring-boot-vue-crud-example

0.0 0.0 0.0 1.05 MB

A Todo App that showcases Spring Boot, Vue.js, and Okta's support for both.

Home Page: https://developer.okta.com/blog/2022/08/19/build-crud-spring-and-vue

License: Apache License 2.0

JavaScript 17.51% Java 20.43% HTML 3.20% Vue 56.86% Sass 2.00%

admin-okta-spring-boot-vue-crud-example's Introduction

Build a Simple CRUD App with Spring Boot and Vue.js

This example app shows how to build a CRUD app with Spring Boot 3.0, Spring Data, Quasar, and Vue.js.

Please read Build a Simple CRUD App with Spring Boot and Vue.js to see how this app was created.

Prerequisites:

You will need a free Okta Developer account if you don't already have one. You will be able to sign up for one in the instructions below using the Okta CLI.

Clone and Configure the Project

To install this example application, run the following commands:

git clone https://github.com/oktadev/okta-spring-boot-vue-crud-example.git spring-boot-vue
cd spring-boot-vue

TIP: If you'd like to use Auth0, check out the auth0 branch (git checkout auth0) and follow the instructions in its README.md.

If you do not already have a free Okta developer account, use the CLI to create one (okta register). Otherwise, log in (okta login).

Once you are registered and logged in, create a new OIDC application.

okta apps create
  • The default name is fine.
  • Select 2: Single Page App
  • The default redirect URIs are fine.

You need to put the Issuer and Client ID into two places. The first is to configure the Spring Boot API. The second configures the Vue client. Replace the bracketed values below with the values from the Okta CLI output.

resource-server/src/main/resources/application.properties

server.port=9000
okta.oauth2.issuer=https://<your-okta-domain>/oauth2/default
okta.oauth2.clientId=<your-client-id>

You'll also need to update the .env file in the client project.

client/.env

VUE_APP_CLIENT_ID=<your-client-id>
VUE_APP_ISSUER_URI=<your-issuer-uri>
VUE_APP_SERVER_URI=http://localhost:9000

Start the App

To start the API, open a Bash shell and navigate to the resource-server subdirectory.

./gradlew bootRun

To start the client, open another Bash shell and navigate to the client subdirectory.

Install the dependencies.

npm install

Start the client.

npm run serve

Open a browser to http://localhost:8080.

Links

This example uses the following open source libraries from Okta:

Help

Please post any questions as comments on the blog post, or visit our Okta Developer Forums.

License

Apache 2.0, see LICENSE.

admin-okta-spring-boot-vue-crud-example's People

Contributors

moksamedia avatar mraible avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.