Step 1: Set up your local environment
Clone the following GitHub repository to get started:Step 2: Run as a Next.js app
-
Install dependencies:
-
Start the development server:
- Open http://localhost:3000 to see your app live.
Step 3: Configure your project
Create a project To interact with Offline Protocol, you’ll need an active project on your dev dashboard- Visit the SDK Setup page.
- Create a new project.
- Add allowed origins to the domain allowlist. 4. Use the projectId to initialize the SDK Provider.
Step 4: Go live
Deploy your Next.js app” You can deploy your app to any hosting service (e.g. Netlify).- Push your code to GitHub.
- Connect your repo to the hosting provider.
- Deploy and your app is live!
Next steps
Now that you have Offline Protocol running, check out these features:Use components
Start adding Offline Protocol React components to your app.
API documentation
Explore endpoints and usage examples in the API reference.
Need help? Check out the full documentation or join the community
forum.