Installing Ditto
First, install Deno:
curl -fsSL https://deno.land/x/install/install.sh | sudo DENO_INSTALL=/usr/local sh
Now, run Ditto:
deno run -A https://gitlab.com/soapbox-pub/ditto/-/raw/main/src/server.ts
That's it! Ditto is now running on your machine.