{"id":18488504,"url":"https://github.com/oktadev/okta-node-express-typescript-vue-example","last_synced_at":"2025-07-23T05:33:25.785Z","repository":{"id":38301653,"uuid":"153349100","full_name":"oktadev/okta-node-express-typescript-vue-example","owner":"oktadev","description":"Example Node.js API using TypeScript, Express, and Vue","archived":false,"fork":false,"pushed_at":"2023-02-11T09:24:22.000Z","size":694,"stargazers_count":67,"open_issues_count":8,"forks_count":29,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-11T15:14:18.312Z","etag":null,"topics":["expressjs","nodejs","typescript","vue"],"latest_commit_sha":null,"homepage":"https://developer.okta.com/blog/2018/11/15/node-express-typescript","language":"TypeScript","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-16T20:22:35.000Z","updated_at":"2025-03-05T04:18:00.000Z","dependencies_parsed_at":"2024-11-06T12:57:42.212Z","dependency_job_id":"945f232e-e435-4768-895b-e279220b0bad","html_url":"https://github.com/oktadev/okta-node-express-typescript-vue-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/oktadev/okta-node-express-typescript-vue-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-vue-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-vue-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-vue-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-vue-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oktadev","download_url":"https://codeload.github.com/oktadev/okta-node-express-typescript-vue-example/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oktadev%2Fokta-node-express-typescript-vue-example/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266624710,"owners_count":23958299,"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","status":"online","status_checked_at":"2025-07-23T02:00:09.312Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["expressjs","nodejs","typescript","vue"],"created_at":"2024-11-06T12:51:49.941Z","updated_at":"2025-07-23T05:33:25.760Z","avatar_url":"https://github.com/oktadev.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# Example Node.js API using Express, TypeScript, Vue, and PostgreSQL\n\nThis example application shows how to create a Node.js Express web app using TypeScript. Please read [Use TypeScript to Build a Node API with Express](https://developer.okta.com/blog/2018/11/15/node-express-typescript) to see how this app was created.\n\n## Requirements\n\n* Install [Node.js](https://nodejs.org) version 8+\n* Install [Docker](https://www.docker.com/) (or some other instance of [PostgreSQL](https://www.postgresql.org/))\n\n## Development setup\n\n* Clone or download this repository\n* Install modules using `npm install`\n* Copy `.env.sample` to `.env`\n* Set up [PostgreSQL with Docker](https://docs.docker.com/samples/library/postgres/). With docker installed, use the following two commands to create an instance of PostgreSQL for the application. Feel free to change the name and password for the database.\n\n```bash\ndocker pull postgres:latest\ndocker run -d --name guitar-db -p 5432:5432 -e 'POSTGRES_PASSWORD=p@ssw0rd42' postgres\n```\n\n* Modify `.env` to match your PostgreSQL server connection and credentials\n* Initialize the PostgreSQL database by running `npm run initdb`\n* Create a free [Okta Developer Account](https://developer.okta.com/signup/)\n* Set up a new Okta application\n\n    1. In the Applications section, click \"Add Application\"\n    2. Select \"Web\" and click Next\n    3. Name your application, and set the Login Redirect URIs to `http://localhost:8080/authorization-code/callback`. By default, the web application will run locally at http://localhost:8080. Click Save.\n\n* On the Application screen under the General tab you will find a section for \"Client Credentials.\" You will need to copy the values for \"Client ID\" and \"Client secret\" and paste them into the `.env` file for `OKTA_CLIENT_ID` and `OKTA_CLIENT_SECRET`, respectively.\n* Copy the URL for your Okta developer account (e.g. `https://dev-123456-admin.oktapreview.com`) and paste it into the `.env` file as the value for `OKTA_ORG_URL`. Remove `-admin` from the URL. The setting should look similar to:\n\n```\nOKTA_ORG_URL=https://dev-123456.oktapreview.com\n```\n\n## Launching application\n\nTo run the application in development mode:\n\n```bash\nnpm run dev\n```\n\nBy default, the web application should now be running at [http://localhost:8080](http://localhost:8080).\n\n## Links\n\nThis example application uses: \n\n* [Node.js](https://nodejs.org)\n* [TypeScript](https://www.typescriptlang.org/)\n* [Express](https://expressjs.com/)\n* [PostgreSQL](https://www.postgresql.org/)\n* [EJS](https://github.com/mde/ejs)\n* [Okta's Node.js OIDC Middleware](https://www.npmjs.com/package/@okta/oidc-middleware)\n* [Vue](https://vuejs.org/)\n* [Materialize](https://materializecss.com/)\n* [Axios](https://github.com/axios/axios)\n\n## Help\n\nPlease 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.\n\n## License\n\nApache 2.0, see [LICENSE](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-node-express-typescript-vue-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foktadev%2Fokta-node-express-typescript-vue-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foktadev%2Fokta-node-express-typescript-vue-example/lists"}