# Clone the repo git clone email@example.com:drifting-in-space/y-sweet.git # Enter the examples directory cd y-sweet/examples # Install dependencies npm install
Copy the connection string in Quickstart section of the y-sweet dashboard (opens in a new tab). This is a secret key that connects your app to the y-sweet server, which syncs and persists your app data.
CONNECTION_STRING as an environment variable.
# Use the connection string you copied from the Y-Sweet Cloud console export CONNECTION_STRING="MY_CONNECTION_STRING"
Run the app
npm run dev
This will print out a URL, usually http://localhost:3000 (opens in a new tab), which you can open in your browser: