Skip to content

propeldata/arbor-dashboard

Repository files navigation

Propel Next.js Reference Implementation

This is a sample implementation showing how to integrate Propel with a Next.js application.

Prerequisites

  • Node.js 18.17 or later
  • A Propel account with an application created
  • OAuth2 credentials from Propel

Setup

  1. Clone this repository
  2. Install dependencies:
npm install
# or
yarn install
# or
pnpm install
  1. Set up your environment variables:
# Copy the example environment file
cp .env.example .env
  1. Get your Propel credentials:
    • Log in to your Propel Dashboard
    • Go to Applications
    • Select your application (or create a new one)
    • Under OAuth2 Credentials, you'll find your:
      • Client ID
      • Client Secret
    • Copy these values into your .env file

Development

Run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev

Open http://localhost:3000 with your browser to see the result.

Environment Variables

The following environment variables are required:

PROPEL_APP_CLIENT_ID=your_client_id
PROPEL_APP_CLIENT_SECRET=your_client_secret
PROPEL_API_URL=https://api.us-east-2.propeldata.com/graphql
PROPEL_AUTH_URL=https://auth.us-east-2.propeldata.com/oauth2/token

Project Structure

  • src/app - Contains the main application code
  • public - Static assets
  • .env - Environment variables (do not commit this file)
  • .env.example - Example environment variables template

Learn More

Releases

Packages

Used by

Contributors

Languages