GithubHelp home page GithubHelp logo

workos / node-admin-portal-example Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 9.63 MB

An example Node application demonstrating how to use the WorkOS Node SDK to support Admin Portal.

JavaScript 31.97% CSS 37.65% EJS 30.37%

node-admin-portal-example's Introduction

Node.js Example App with Admin Portal powered by WorkOS

An example application demonstrating to use the WorkOS Node SDK to access the Admin Portal for SSO and Directory Sync.

Prerequisites

Node.js version 10+

Node Project Setup

  1. In your CLI, navigate to the directory into which you want to clone this git repo.

    $ cd ~/Desktop/
  2. Clone this repo and install dependencies:

    # HTTPS
    git clone https://github.com/workos-inc/node-admin-portal-example.git

    or

    # SSH
    git clone [email protected]:workos-inc/node-admin-portal-example.git
  3. Navigate to the cloned repo.

    $ cd node-admin-portal-example
  4. Install the dependencies.

    $ npm install

Configure your environment

  1. Grab your API Key.
  2. Get your Client ID.
  3. Create a .env file at the root of the project and populate with the following environment variables (using values found above):
WORKOS_API_KEY=your_api_key_here
WORKOS_CLIENT_ID=your_client_id_here
  1. Set your Default Redirect Link.

Run the server and log in using SSO

npm start

Head to http://localhost:8000/ to begin!

Need help?

If you get stuck and aren't able to resolve the issue by reading our WorkOS Admin Portal documentation, API reference, or tutorials, you can reach out to us at [email protected] and we'll lend a hand.

node-admin-portal-example's People

Contributors

awolfden avatar dependabot[bot] avatar logangingerich avatar marktran avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.