All Projects → oktadev → okta-node-express-typescript-vue-example

oktadev / okta-node-express-typescript-vue-example

Licence: Apache-2.0 license
Example Node.js API using TypeScript, Express, and Vue

Programming Languages

typescript
32286 projects
EJS
674 projects
PLpgSQL
1095 projects
javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to okta-node-express-typescript-vue-example

mindjs
Minimalistic, pure Node.js framework superpowered with Dependency Injection 💡 💻 🚀
Stars: ✭ 17 (-73.02%)
Mutual labels:  expressjs
GoBarber
💈 Aplicação de agendamento para serviços de beleza, entre provedores e clientes.
Stars: ✭ 84 (+33.33%)
Mutual labels:  expressjs
docker-node-express-boilerplate
Boilerplate for quickly bootstrapping production-ready RESTful APIs / microservices
Stars: ✭ 113 (+79.37%)
Mutual labels:  expressjs
order-service
一个基于vuejs,reactjs,nodejs,socket.io的服务系统
Stars: ✭ 22 (-65.08%)
Mutual labels:  expressjs
mern-boilerplate
React + Express + Webpack + Mongo = MERN Stack Boilerplate
Stars: ✭ 39 (-38.1%)
Mutual labels:  expressjs
ZestX-Frontend
Month-Long Fest Website ZestX with some Awsome UI and Intact Backend. Implemented admin page for user and event management
Stars: ✭ 28 (-55.56%)
Mutual labels:  expressjs
Express-MongoDB-Authentication
A simple authentication app using Express & MongoDB
Stars: ✭ 15 (-76.19%)
Mutual labels:  expressjs
firestore-store
express-session store for Firebase Cloud Firestore
Stars: ✭ 44 (-30.16%)
Mutual labels:  expressjs
Blog-Server
The backend Code of Flutter Blog App which is the part of Youtube series. It is developed using the NodeJS/ExpressJs with MongoDB Database
Stars: ✭ 33 (-47.62%)
Mutual labels:  expressjs
mern-stack-application
A MERN stack e-commerce website.
Stars: ✭ 45 (-28.57%)
Mutual labels:  expressjs
tuffilink
Capable system for URL shortening with the use of an SQL database. Tuffilink is named after an elephant 🐘
Stars: ✭ 13 (-79.37%)
Mutual labels:  expressjs
hlf1.4-supply-chain
Supply chain proof of concept in Hyperledger Fabric. Network with four companies and a specific chaincode exposed as rest API
Stars: ✭ 30 (-52.38%)
Mutual labels:  expressjs
express-mquery
Expose mongoose query API through HTTP request.
Stars: ✭ 37 (-41.27%)
Mutual labels:  expressjs
nestjs-rest-sample
NestJS RESTful APIs Sample
Stars: ✭ 204 (+223.81%)
Mutual labels:  expressjs
blog
仿照nswbmw的N-blog项目写的多人博客系统,引入了bootstrap和jquery validation plugin。详见wiki部分。
Stars: ✭ 10 (-84.13%)
Mutual labels:  expressjs
next-express
Next.js custom webservers with Express.js made easy
Stars: ✭ 64 (+1.59%)
Mutual labels:  expressjs
express-mongodb-crud
Web Application CRUD using Nodejs and Mongodb
Stars: ✭ 87 (+38.1%)
Mutual labels:  expressjs
code-editor-react
A full stack web application for online programming, built with React and Express.
Stars: ✭ 27 (-57.14%)
Mutual labels:  expressjs
nodetomic-api
RESTful API Nodejs designed for horizontal scalability with support for cluster, based on Express, MongoDB, Redis, JWT, Socket.io, Passport.
Stars: ✭ 41 (-34.92%)
Mutual labels:  expressjs
blog-front
Blog@NextJs
Stars: ✭ 65 (+3.17%)
Mutual labels:  expressjs

Example Node.js API using Express, TypeScript, Vue, and PostgreSQL

This 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 to see how this app was created.

Requirements

Development setup

  • Clone or download this repository
  • Install modules using npm install
  • Copy .env.sample to .env
  • Set up PostgreSQL with Docker. 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.
docker pull postgres:latest
docker run -d --name guitar-db -p 5432:5432 -e 'POSTGRES_PASSWORD=p@ssw0rd42' postgres
  • Modify .env to match your PostgreSQL server connection and credentials

  • Initialize the PostgreSQL database by running npm run initdb

  • Create a free Okta Developer Account

  • Set up a new Okta application

    1. In the Applications section, click "Add Application"
    2. Select "Web" and click Next
    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.
  • 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.

  • 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:

OKTA_ORG_URL=https://dev-123456.oktapreview.com

Launching application

To run the application in development mode:

npm run dev

By default, the web application should now be running at http://localhost:8080.

Links

This example application uses:

Help

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.

License

Apache 2.0, see LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].