mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-24 11:51:32 +00:00
3bee6f6e31
see server/src/settings.rs
24 lines
627 B
Markdown
Vendored
24 lines
627 B
Markdown
Vendored
#### Requirements
|
|
|
|
- [Rust](https://www.rust-lang.org/)
|
|
- [Yarn](https://yarnpkg.com/en/)
|
|
- [Postgres](https://www.postgresql.org/)
|
|
|
|
#### Set up Postgres DB
|
|
|
|
```bash
|
|
psql -c "create user lemmy with password 'password' superuser;" -U postgres
|
|
psql -c 'create database lemmy with owner lemmy;' -U postgres
|
|
export LEMMY_DATABASE_URL=postgres://lemmy:password@localhost:5432/lemmy
|
|
```
|
|
|
|
#### Running
|
|
|
|
```bash
|
|
git clone https://github.com/dessalines/lemmy
|
|
cd lemmy
|
|
./install.sh
|
|
# For live coding, where both the front and back end, automagically reload on any save, do:
|
|
# cd ui && yarn start
|
|
# cd server && cargo watch -x run
|
|
```
|