]> Untitled Git - lemmy.git/blob - docs/src/contributing_local_development.md
Merge pull request #8 from dessalines/master
[lemmy.git] / docs / src / contributing_local_development.md
1 #### Requirements
2
3 - [Rust](https://www.rust-lang.org/)
4 - [Yarn](https://yarnpkg.com/en/)
5 - [Postgres](https://www.postgresql.org/)
6
7 #### Set up Postgres DB
8
9 ```bash
10  psql -c "create user lemmy with password 'password' superuser;" -U postgres
11  psql -c 'create database lemmy with owner lemmy;' -U postgres
12  export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
13 ```
14
15 #### Running
16
17 ```bash
18 git clone https://github.com/dessalines/lemmy
19 cd lemmy
20 ./install.sh
21 # For live coding, where both the front and back end, automagically reload on any save, do:
22 # cd ui && yarn start
23 # cd server && cargo watch -x run
24 ```