Self-hosting

Self-host Towncenter for free.

Towncenter is free, open-source prospecting software. Paste this prompt into a coding agent to install the app and its database.

Install prompt
You
Set up and run Towncenter on this machine. It is free open-source software (AGPL-3.0) for field sales prospecting. It uses Node.js 22 and PostgreSQL 16.

Do this in order:
1. Clone https://github.com/town-center-co/towncenter and move into the directory.
2. Run npm install.
3. Copy .env.example to .env.local and set AUTH_SECRET to a long random string. Use openssl rand -hex 32.
4. Run docker compose up -d to start PostgreSQL on port 5455.
5. Run npm run db:push.
6. Run npm run dev.

Open the app and create the first account. It owns the instance and closes signups. Confirm that the map loads. If a step fails, fix the cause and continue.