This example app shows how to create a Node.js API and display its data with a Vue.js UI.
Please read Build a Basic CRUD App with Vue.js and Node to see how this app was created.
Prerequisites: Node.js, Terraform, Terraform Provider Okta
Okta has Authentication and User Management APIs that reduce development time with instant-on, scalable user infrastructure. Okta's intuitive API and expert support make it easy for developers to authenticate, manage, and secure users and roles in any application.
To install this example application, run the following commands:
git clone https://github.com/oktadeveloper/okta-vue-node-example.git
cd okta-vue-node-example
npm install
This demo makes use of Terraform to automatically configure your Okta org for you.
Make sure that you've done the following before going any further:
Once you've installed Terraform, run the commands below from the okta-vue-node-example
directory:
Start by making a copy of the example Terraform terraform.tfvars.example
file:
cp terraform.tfvars.example terraform.tfvars
Next, create and API token for your Okta org.
Then, using your favorite text editor, edit the terraform.tfvars
file to relfect the settings for your Okta org.
Once you've edited terraform.tfvars
, you're ready to run Terraform. Start by having Terraform install the requisite plugins:
terraform init
Lastly, apply Okta configuration located in setup.tf
by running this command:
terraform apply
At this point, you will have a copy of the project installed locally, and (thanks to Terraform) have your Okta org configured for this app. To start each app, follow the instructions below.
To run the server:
node ./src/server
To run the client:
npm run dev
This example uses the following libraries provided by Okta:
Please post any questions as comments on the blog post, or visit our Okta Developer Forums. You can also email [email protected] if you would like to create a support ticket.
Apache 2.0, see LICENSE.