A comprehensive example application demonstrating how to use Membrane to create a application that connects to multiple CRM, marketing, and business applications. This project showcases fetching, creating, updating, and deleting records across various integrations through a single, consistent interface.
Before you begin, ensure you have:
- Node.js 18+ installed
- A Integration.app account
git clone https://github.com/membranehq/unified-api-example.git
cd unified-api-example
pnpm installThis example uses the following integration elements:
- Data Sources: Pre-configured data models for Contacts, Companies, Users, Jobs, Job Applications, and other objects in our Universal Data Model
- Integrations: These are third party apps like Hubspot, Salesforce, etc.
- Actions: Entities that represent a simple request to an integration. e.g
Create Contact,Update Contact, ...
They can be imported into your workspace using the Membrane CLI, to import the elements:
- Install the Membrane CLI
npm install -g @membranehq/cli- Populate the config file with your workspace key and secret (This will open your browser to the workspace and get the workspace key and secret)
membrane init- Push the elements into your workspace
membrane pushCreate a .env.local file in the root directory with your workspace key and secret
# Integration.app Configuration
INTEGRATION_APP_WORKSPACE_KEY=your_workspace_key
INTEGRATION_APP_WORKSPACE_SECRET=your_workspace_secretIn your Membrane workspace:
- Navigate to your Integrations page
- For each integration you want to use, add the necessary credentials, some integrations like
Hubspotuse our Auth Proxy so providing adding credentials isn't required.
pnpm devOpen http://localhost:3000 to view the application.
This project is licensed under the MIT License - see the LICENSE file for details.