https://github.com/workos/ruby-directory-sync-example
An example Sinatra application demonstrating how to use the WorkOS Ruby SDK to support Directory Sync.
https://github.com/workos/ruby-directory-sync-example
Last synced: 3 months ago
JSON representation
An example Sinatra application demonstrating how to use the WorkOS Ruby SDK to support Directory Sync.
- Host: GitHub
- URL: https://github.com/workos/ruby-directory-sync-example
- Owner: workos
- License: mit
- Created: 2020-08-04T16:38:46.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-28T23:25:21.000Z (over 2 years ago)
- Last Synced: 2025-10-19T12:34:26.384Z (8 months ago)
- Language: HTML
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ruby-directory-sync-example
An example Sinatra application demonstrating how Directory Sync works with WorkOS and Ruby.
## Clone and Install
Clone this repo and install dependencies:
```sh
git clone git@github.com:workos-inc/ruby-directory-sync-example.git && cd ruby-directory-sync-example && bundle install
```
## Configure your environment
1. Grab your [API Key](https://dashboard.workos.com/api-keys).
2. Run `cp .env.example .env` and add your API key. The `workos` gem will read your API key from the ENV variable `WORKOS_API_KEY`. You may also set the API key yourself by adding `WorkOS.key = $YOUR_API_KEY` to `app.rb`.
## Run the app
```sh
ruby app.rb
```
Head to `http://localhost:4567`!
For more information, see the [WorkOS Ruby SDK documentation](https://docs.workos.com/sdk/ruby).