.
This commit is contained in:
@@ -96,6 +96,12 @@ bun run --cwd apps/web dev
|
|||||||
|
|
||||||
The Vite dev server proxies `/api` to `http://localhost:3001`.
|
The Vite dev server proxies `/api` to `http://localhost:3001`.
|
||||||
|
|
||||||
|
Important en local:
|
||||||
|
|
||||||
|
- le compte admin local est créé au démarrage de l'API
|
||||||
|
- il faut donc avoir un fichier `.env` à la racine du repo
|
||||||
|
- et redémarrer l'API après tout changement de `APP_ADMIN_EMAIL` ou `APP_ADMIN_PASSWORD`
|
||||||
|
|
||||||
## Docker CLI assumptions
|
## Docker CLI assumptions
|
||||||
|
|
||||||
The backend assumes docker-mailserver is available in a running container and that the following commands are present:
|
The backend assumes docker-mailserver is available in a running container and that the following commands are present:
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "bun --watch src/index.ts",
|
"dev": "bun --env-file ../../.env --watch src/index.ts",
|
||||||
"build": "bun build src/index.ts --target bun --outdir dist",
|
"build": "bun build src/index.ts --target bun --outdir dist",
|
||||||
"typecheck": "tsc -p tsconfig.json --noEmit"
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||||
},
|
},
|
||||||
@@ -21,4 +21,3 @@
|
|||||||
"typescript": "^5.8.3"
|
"typescript": "^5.8.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "bunx vite --host 0.0.0.0 --port 5173 --mode development",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"typecheck": "tsc -p tsconfig.json --noEmit"
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
||||||
},
|
},
|
||||||
@@ -22,4 +22,3 @@
|
|||||||
"vite": "^6.2.4"
|
"vite": "^6.2.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user