Requirements
- Bun 1.4 or newer
- PostgreSQL 14 or newer, with an empty database
- Optional: ffmpeg on the
PATH, for video uploads
Set up
1
Get the code
2
Create a database
Use any name. Set
DATABASE_URL if it isn’t the default (postgres://dev@localhost:5432/xitter).3
Download a client build
You don’t need an X account for this.
4
Create the first account and make it an admin
5
Start the server
http://localhost:3000 and sign in with the client’s own form. The tables are created on the first start.Add more accounts
Sign-up is invite-only. Make invite codes in the admin panel (/admin > Invites) or with:
/signup?code=<code>) fills the code in.
Client builds
Without an account,fetch-client.ts pins the build x.com gives signed-out visitors at /i/tweetdeck, with the guest set of feature switches.
Next steps
Configuration
Environment variables for the server.
Docker Compose
Run in production with containers.
.png?fit=max&auto=format&n=qGT-dNfenrR9oohN&q=85&s=88333a3e016343d74fa2f40f33ed14f5)
