Skip to content

Latest commit

 

History

History
 
 

backend

Revert.dev

Open-source unified API for product integrations

@revertdotdev/backend

# Copy the example env file
cp packages/backend/.env.example packages/backend/.env

# Update this .env file with your own secrets if you'd like to.

Fern setup

  • Login with Fern with fern login.
  • To generate Fern drive code locally, run yarn fern in the root folder of this repo. This will create the packages/backend/generated folder with the generated code.

Setup Redis

  • Have a redis instance running locally or use https://upstash.com/ to get a redis url.
  • Update the redis url in .env

Seed the database

# seed the database with sample data
yarn workspace @revertdotdev/backend db-seed

Running the API locally

  • Run yarn workspace @revertdotdev/backend dev to the run service locally at :4001

Integrations

Connect to Pipedrive CRM via Revert

  • Open Pipedrive Developers Corner and sign in to your account, or create a new one
  • Go to Settings > (company name) Developer Hub
  • Create a Pipedrive app, using the steps mentioned here
    • You can skip this step and use the default revert Pipedrive app
  • Set https://app.revert.dev/oauth-callback/pipedrive as a callback url for your app
  • Get your client_id and client_secret:
    • Go to the "OAuth & access scopes" tab of your app
    • Copy your client_id and client_secret
  • Login to your revert dashboard and click on "Customize your apps" -> "Pipedrive"
  • Enter the client_id and client_secret you copied in the previous step
  • (Optional) Copy the scopes (from the Pipedrive app) and add them to the revert dashboard to get granular control over the scope of your app
    • You can skip this step and use the default revert scopes and permissions