diff options
author | Felix Ableitner <me@nutomic.com> | 2019-12-31 15:31:34 +0100 |
---|---|---|
committer | Felix Ableitner <me@nutomic.com> | 2020-01-01 17:24:36 +0100 |
commit | d80e8fc075bc9afb699afd1d6e5e5f79a0db9cd1 (patch) | |
tree | a0d6a0781a3d39905ba93a867b55cf5c669c6220 /docs/src/contributing_local_development.md | |
parent | 0b04aec6024ee87b6a3651b1f39f7726c5a1d0e7 (diff) |
Use mdbook for documentation (fixes #375)
Diffstat (limited to 'docs/src/contributing_local_development.md')
-rw-r--r-- | docs/src/contributing_local_development.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/src/contributing_local_development.md b/docs/src/contributing_local_development.md new file mode 100644 index 00000000..a681eeb0 --- /dev/null +++ b/docs/src/contributing_local_development.md @@ -0,0 +1,24 @@ +#### 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 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 +``` |