Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 880 Bytes

README.md

File metadata and controls

34 lines (24 loc) · 880 Bytes

Ditto Javascript Quickstart App 🚀

This app is a TUI built using Ink with React that demonstrates how to create a peer-to-peer tasks app using Ditto.

Getting Started

First, in the root of this repository, copy the .env.sample file to .env, then fill out the variables with your Ditto AppID and Playground Token. If you don't have those yet, visit https://portal.ditto.live

cp .env.sample .env
#!/usr/bin/env bash

# Copy this file from ".env.sample" to ".env", then fill in these values
# A Ditto AppID and Playground token can be obtained from https://portal.ditto.live
export DITTO_APP_ID=""
export DITTO_PLAYGROUND_TOKEN=""

Next, make sure you have npm installed, then run the following:

npm install
npm start 2>/dev/null

NOTE: the 2>/dev/null silences log output on stderr, because the logs interfere with the TUI rendering