aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-02-20 21:23:28 +0000
committerMohamedBassem <me@mbassem.com>2024-02-20 21:38:14 +0000
commit8711bca9db49546d265fc119b5dcf3eb2db22095 (patch)
tree16bf6fd86da06a80014dfb5738e43a63af038793 /README.md
parentdbdde49c1e4870f402dc8901e0bf78abb790caf9 (diff)
downloadkarakeep-8711bca9db49546d265fc119b5dcf3eb2db22095.tar.zst
docker: Add a docker-based dev environment
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index 4a33cb9e..a32fa90f 100644
--- a/README.md
+++ b/README.md
@@ -60,6 +60,15 @@ I'm a systems engineer in my day job (and have been for the past 7 years). I did
## Development
+### Docker
+
+You can turnup the whole development environment with:
+`docker compose -f docker/docker-compose.dev.yml up`
+
+### Manual
+
+Or if you have nodejs installed locally, you can do:
+
- `yarn install` in the root of the repo.
- `yarn prisma:migrate:dev` then `yarn prisma:generate` to generate prisma's data and run the database migrations.
- `yarn web` to start the web app.
@@ -75,3 +84,7 @@ I'm a systems engineer in my day job (and have been for the past 7 years). I did
- `packages/shared`: Shared utilities and code between the workers and the web app.
- `packages/web`: Where the nextjs based web app lives.
- `packages/workers`: Where the background job workers (crawler and openai as of now) run.
+
+### Submitting PRs
+
+- Before submitting PRs, you'll want to run `yarn format` and include its changes in the commit. Also make sure `yarn lint` is successful.