Warning
⛔ This repository has been deprecated
Beefree SDK now has a new React Wrapper, and this project is no longer updated/maintained. The sample project has moved to the new repository:
👉 BeefreeSDK/react-email-builder
Please use the new repository for all future issues, pull requests, and contributions. This repo is archived and will not receive any further updates.
Live Demo: https://beefree.io/start-designing
The easiest way to get started is to clone this repository:
# Get the latest snapshot
git clone https://github.com/BeefreeSDK/beefree-sdk-demo-react-starter.git myproject
# Change directory
cd myprojectOpen config/config.local.ts and change the placeholders with your credentials:
CLIENT_ID: '### my-client-id ###'
CLIENT_SECRET: '### my-secret-key ###'
CLIENT_UID: '### username ###'NOTE: remember to store these credentials in your back-end and not expose them publicly in your front-end
Install dependencies, then start the project with the minimal scripts provided:
> npm install
> npm start
# or using yarn:
> yarn
> yarn startThen run it in your browser:
http://localhost:8080/
There is a simple build script that uses Webpack default configuration for the bundle
# Build the project in a single artifact:
> npm run build
# or with yarn:
> yarn buildThe output is a bundle.js file in the project's root.
To use Beefree SDK, you must obtain the appropriate credentials: Client ID and Client Secret, available on the Beefree SDK Developer Console application details page.