An open API service indexing awesome lists of open source software.

https://github.com/epilot-dev/custom-journey-block-react

A starter to build custom journey block web components with React
https://github.com/epilot-dev/custom-journey-block-react

Last synced: 8 months ago
JSON representation

A starter to build custom journey block web components with React

Awesome Lists containing this project

README

          

# Epilot Custom Journey Block Starter

## Overview

This is a starter project for creating custom journey blocks for the Epilot platform using React and web components.

## Prerequisites

- Node.js (v16+)
- npm or yarn

## Getting Started

1. Clone the repository
2. Install dependencies:
```bash
npm install
```

3. Development:
```bash
npm run dev
```
This would serve a build version of the app and would listen to changes in the files to refresh.

4. Build for production:
```bash
npm run build
```

## Project Structure

- `src/`: Source code directory
- `index.ts`: Entry point for the web component
- `vite.config.ts`: Build configuration

## Creating Your Journey Block

1. Modify the web component in `src/index.ts`
2. Add your custom logic and styling
3. Ensure the component follows Epilot's journey block specification

## Documentation

For detailed guidelines on creating custom journey blocks, refer to the [Epilot App Documentation](https://docs.epilot.io/apps/components/custom-journey-block).

## Deployment

The build process generates a `bundle.js` file that can be hosted and used in Epilot journeys.

## License

[MIT]