1# Local Collaboration
2
3## Setting up the local collaboration server
4
5### Setting up for the first time?
6
71. Make sure you have livekit installed (`brew install livekit`)
81. Install [Postgres](https://postgresapp.com) and run it.
91. Then, from the root of the repo, run `script/bootstrap`.
10
11### Have a db that is out of date? / Need to migrate?
12
131. Make sure you have livekit installed (`brew install livekit`)
141. Try `cd crates/collab && cargo run -- migrate` from the root of the repo.
151. Run `script/seed-db`
16
17## Testing collab locally
18
191. Run `foreman start` from the root of the repo.
201. In another terminal run `script/zed-local`.
211. Two copies of Zed will open. Add yourself as a contact in the one that is not you.
221. Start a collaboration session as normal with any open project.