Skip to content

Commit 1e317d9

Browse files
authored
Development Instructions are incomplete/not working (fixes hoarder-app#145) (hoarder-app#146)
updated the documentation on how to set up the development environment Co-authored-by: kamtschatka <[email protected]>
1 parent edf5fdb commit 1e317d9

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.env.sample

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# See https://docs.hoarder.app/configuration for more information
2+
DATA_DIR=<path>
3+
NEXTAUTH_SECRET=<secret>

docs/docs/07-Development/01-setup.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@
44
### First Setup
55

66
- You'll need to prepare the environment variables for the dev env.
7-
- Easiest would be to set it up once in the root of the repo and then symlink it in each app directory.
7+
- Easiest would be to set it up once in the root of the repo and then symlink it in each app directory (e.g. `/apps/web`, `/apps/workers`) and also `/packages/db`.
88
- Start by copying the template by `cp .env.sample .env`.
99
- The most important env variables to set are:
1010
- `DATA_DIR`: Where the database and assets will be stored. This is the only required env variable. You can use an absolute path so that all apps point to the same dir.
11+
- `NEXTAUTH_SECRET`: Random string used to sign the JWT tokens. Generate one with `openssl rand -base64 36`. Logging in will not work if this is missing!
1112
- `REDIS_HOST` and `REDIS_PORT` default to `localhost` and `6379` change them if redis is running on a different address.
1213
- `MEILI_ADDR`: If not set, search will be disabled. You can set it to `http://127.0.0.1:7700` if you run meilisearch using the command below.
1314
- `OPENAI_API_KEY`: If you want to enable auto tag inference in the dev env.
15+
- run `pnpm run db:migrate` in the root of the repo to set up the database.
1416

1517
### Dependencies
1618

0 commit comments

Comments
 (0)