This is a sample implementation showing how to integrate Propel with a Next.js application.
- Node.js 18.17 or later
- A Propel account with an application created
- OAuth2 credentials from Propel
- Clone this repository
- Install dependencies:
npm install
# or
yarn install
# or
pnpm install- Set up your environment variables:
# Copy the example environment file
cp .env.example .env- 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
.envfile
Run the development server:
npm run dev
# or
yarn dev
# or
pnpm devOpen http://localhost:3000 with your browser to see the result.
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/tokensrc/app- Contains the main application codepublic- Static assets.env- Environment variables (do not commit this file).env.example- Example environment variables template
- Propel Documentation - Learn about Propel's features and API