Node.js Task App Quickstart
To get started right away without having to build an app from scratch, explore with the Ditto ready-to-use demo task app.
Before you can install Ditto, you must have the following:
To install Ditto in your environment, install and set up Ditto, and authenticate your client identity with the Big Peer:
Clone the getditto > template-app-nodejs-todo repository from GitHub:
Install the required dependencies:
Open the project in your IDE, and then open the index.ts file. For example, if using Visual Studio Code:
In line 14 of the index.ts file, replace 'YOUR_APP_ID' and 'YOUR_TOKEN' with your app ID and playground token. (Ditto Basics > Getting Your Access Credentials)
Build the demo task app:
Interact with the demo task app and simulate real-time peer-to-peer replication by running the demo task app in two or more separate terminals (one for each virtual peer):
Using the commands that automatically appear in each of your terminals, add, remove, and modify documents as desired.