2020-03-26 14:45:56 +00:00
|
|
|
# Federation Development
|
|
|
|
|
|
|
|
## Setup
|
|
|
|
|
|
|
|
If you don't have a local clone of the Lemmy repo yet, just run the following command:
|
|
|
|
|
|
|
|
```bash
|
2020-05-24 17:25:29 +00:00
|
|
|
git clone https://github.com/LemmyNet/lemmy -b federation
|
2020-03-26 14:45:56 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
If you already have the Lemmy repo cloned, you need to add a new remote:
|
|
|
|
```bash
|
2020-05-24 17:25:29 +00:00
|
|
|
git remote add federation https://github.com/LemmyNet/lemmy
|
2020-03-26 14:45:56 +00:00
|
|
|
git checkout federation
|
|
|
|
git pull federation federation
|
|
|
|
```
|
|
|
|
|
|
|
|
## Running
|
|
|
|
|
|
|
|
You need to have the following packages installed, the Docker service needs to be running.
|
|
|
|
|
|
|
|
- docker
|
|
|
|
- docker-compose
|
|
|
|
- cargo
|
|
|
|
- yarn
|
|
|
|
|
|
|
|
Then run the following
|
|
|
|
```bash
|
|
|
|
cd dev/federation-test
|
|
|
|
./run-federation-test.bash
|
|
|
|
```
|
|
|
|
|
|
|
|
After the build is finished and the docker-compose setup is running, open [127.0.0.1:8540](http://127.0.0.1:8540) and
|
|
|
|
[127.0.0.1:8541](http://127.0.0.1:8541) in your browser to use the test instances. You can login as admin with
|
|
|
|
username `lemmy` and password `lemmy`, or create new accounts.
|
|
|
|
|
2020-05-24 17:25:29 +00:00
|
|
|
Please get in touch if you want to contribute to this, so we can coordinate things and avoid duplicate work.
|