]> Untitled Git - lemmy.git/blob - docs/src/contributing_local_development.md
Merge pull request #5 from StaticallyTypedRice/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 cd server
11 ./db-init.sh
12 ```
13
14 Or run the commands manually:
15
16 ```bash
17 psql -c "create user lemmy with password 'password' superuser;" -U postgres
18 psql -c 'create database lemmy with owner lemmy;' -U postgres
19 export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
20 ```
21
22 #### Running
23
24 ```bash
25 git clone https://github.com/dessalines/lemmy
26 cd lemmy
27 ./install.sh
28 # For live coding, where both the front and back end, automagically reload on any save, do:
29 # cd ui && yarn start
30 # cd server && cargo watch -x run
31 ```