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

https://github.com/rocicorp/reflect-draw


https://github.com/rocicorp/reflect-draw

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

README

          

# Replidraw

A tiny Figma-like multiplayer graphics editor built with [Reflect](https://reflect.net/).

Running live at [reflect-draw.vercel.app](https://reflect-draw.vercel.app/).

## Install

```bash
npm install
```

## Develop

```bash
# Run local Reflect server
npx reflect dev

# Run UI
NEXT_PUBLIC_REFLECT_SERVER=http://127.0.0.1:8080/ \
npm run dev
```

## Publish

```bash
# Publish app
npx reflect publish --app reflect-draw

# Publish UI somewhere, Vercel works
npx vercel

# You'll have to set the environment variable on Vercel:
# NEXT_PUBLIC_REFLECT_SERVER=
```

## Building your Own Thing

1. Clone this project
2. `npm install`
3. Adjust the mutators, subscribers, and entities in `datamodel/` to implement your domain objects.
4. Implement your UI by calling the subscribers and mutators. See existing UI in `frontend` for an example.
5. Have fun 😀.