Build a Basic CRUD App with Vue.js and Node

default Lastname

@Charles Pratt how did you put your OktaDomain wrong and how did you fix it?

Allyn Becar

Its been awhile. But I think the issue was due to another process using the port (8081) Once I killed that process, evrything worked as expected.

Carsten Andersen

Hello Brandon - I’ve followed this guide to build my own app (I’ve build upon it, and changed most of the stuff to fit my case, except the server/database setup).

Thank you for this, it’s awesome. However I have a question. How complex would it be, to rewrite the backend so the database is unique for every user? Right now every user share the same database tables.

Matt Raible

Hello Carsten,

Having a different tables for each user is often called multi-tenancy. Here’s an article I found that might help with setting this up with Node.js: Getting Started with a Multi-tenant Application on Node.js.

Carsten Andersen

Thank you Matt! I’ll have a look at it!

Matt Raible

You can add Social Login to your Okta login. See Social Login Overview for more information.

senopaul

As a new Dev,i think Vue is better and super that the annoyingly indetation based PUG,looking forward to learning more

Jeremy Langer

Hi Brandon, I’m getting stuck right at the beginning. I’m just getting started with Vue.js, and I’m on Vue CLI v4.5.9. When I run “vue create my-vue-app”, I’m not sure which settings to pick. Could you update this tutorial with the latest commands and options available? Thank you!

Matt Raible

Here’s a newer version that might help: Build a CRUD App with Vue.js, Spring Boot, and Kotlin. It’s backend uses Spring Boot, but the Vue frontend should be up-to-date. You might also like Use Vue and GraphQL to Build a Secure App. See all our Vue.js content by going to the vue tag.

Jake Durell

This all works pretty well but I am having trouble getting await Vue.prototype.$auth.getUser() to provide user information before rendering. The claims are coming in and logging with group info I need for rendering–but the rendering is already done at that point.

Matt Raible

Hello Jake,

Are you using @okta/okta-vue@1.0.0 like this tutorial has? If you’re using a newer version, the API might’ve changed. Also, when creating a new app, the developer console no longer defaults to implicit flow. You’ll have to select implicit flow for this tutorial to work. Please let me know if this helps.