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