{"id":20307248,"url":"https://github.com/oktadev/okta-vue-node-example","last_synced_at":"2025-10-03T23:37:37.733Z","repository":{"id":41769034,"uuid":"121806405","full_name":"oktadev/okta-vue-node-example","owner":"oktadev","description":"Example of a Basic CRUD App with Vue.js and Node","archived":false,"fork":false,"pushed_at":"2023-02-28T02:31:10.000Z","size":4641,"stargazers_count":98,"open_issues_count":15,"forks_count":53,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-25T11:11:35.546Z","etag":null,"topics":["authentication","javascript","jwt","nodejs","oidc","vue","vuejs"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2018/02/15/build-crud-app-vuejs-node","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oktadev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-16T22:12:52.000Z","updated_at":"2024-11-25T14:46:47.000Z","dependencies_parsed_at":"2023-02-15T08:01:41.852Z","dependency_job_id":null,"html_url":"https://github.com/oktadev/okta-vue-node-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-vue-node-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-vue-node-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-vue-node-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-vue-node-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-vue-node-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248429105,"owners_count":21101783,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["authentication","javascript","jwt","nodejs","oidc","vue","vuejs"],"created_at":"2024-11-14T17:16:54.869Z","updated_at":"2025-10-03T23:37:32.698Z","avatar_url":"https://github.com/oktadev.png","language":"JavaScript","readme":"# Basic CRUD with Vue.js and Node\n\nThis example app shows how to create a Node.js API and display its data with a Vue.js UI.\n\nPlease read [Build a Basic CRUD App with Vue.js and Node](https://developer.okta.com/blog/2018/02/15/build-crud-app-vuejs-node) to see how this app was created.\n\n**Prerequisites:** [Node.js](https://nodejs.org/).\n\n\u003e [Okta](https://developer.okta.com/) 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.\n\n* [Getting Started](#getting-started)\n* [Links](#links)\n* [Help](#help)\n* [License](#license)\n\n## Getting Started\n\nTo install this example application, run the following commands:\n\n```bash\ngit clone https://github.com/oktadeveloper/okta-vue-node-example.git\ncd okta-vue-node-example\nnpm install\n```\n\nThis will get a copy of the project installed locally. To start each app, follow the instructions below.\n\nTo run the server:\n\n```bash\nnode ./src/server\n```\n\nTo run the client:\n\n```bash\nnpm run dev\n```\n\n### Create an Application in Okta\n\nYou will need to [create an OpenID Connect Application in Okta](https://developer.okta.com/blog/2018/02/15/build-crud-app-vuejs-node#add-authentication-with-okta) to get your values to perform authentication.\n\nBefore you begin, you’ll need a free Okta developer account. Install the [Okta CLI](https://cli.okta.com/) and run `okta register` to sign up for a new account. If you already have an account, run `okta login`.\n\nThen, run `okta apps create`. Select the default app name, or change it as you see fit. Choose **Single-Page App** and press **Enter**.\n\nUse `http://localhost:8080/callback` for the Redirect URI and accept the default Logout Redirect URI of `http://localhost:8080`.\n\n#### Server Configuration\n\nSet the `issuer` and copy the `clientId` into `src/server.js`.\n\n```javascript\nconst oktaJwtVerifier = new OktaJwtVerifier({\n  clientId: '{yourClientId}',\n  issuer: 'https://{yourOktaDomain}/oauth2/default'\n})\n```\n\n#### Client Configuration\n\nSet the `issuer` and copy the `clientId` into `src/router/index.js`.\n\n```javascript\nconst oktaAuth = new OktaAuth({\n  issuer: 'https://{yourOktaDomain}/oauth2/default',\n  clientId: '{yourClientId}',\n  redirectUri: window.location.origin + '/callback',\n  scopes: ['openid', 'profile', 'email']\n})\n```\n\n## Links\n\nThis example uses the following libraries provided by Okta:\n\n* [Okta JWT Verifier](https://github.com/okta/okta-oidc-js/tree/master/packages/jwt-verifier)\n* [Okta Vue SDK](https://github.com/okta/okta-vue)\n\n## Help\n\nPlease post any questions as comments on the [blog post](https://developer.okta.com/blog/2018/02/15/build-crud-app-vuejs-node), or visit our [Okta Developer Forums](https://devforum.okta.com/).\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-vue-node-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-vue-node-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-vue-node-example/lists"}