This is a minimal Bun + NextJS + Elysia monorepo template. Containerised with docker.
- Fullstack frontend (NextJS) and backend server (Elysia)
- NextJS HMR
- Comes with eslint and prettier (make prettier)
- Out-of-the-box swagger automatic documentation
Requires:
docker compose
make
Run with make run
and stop everything with make down
.
- NextJS 13.x.x does not support bun as a runtime. Uses node as fallback.
- Hot reloading with
bun --hot/--watch ...
is not supported on mounted windows drives. Usesdocker compose watch
to sync the file onto the container and runbun --watch ...
from there
- Add Turso/Postgres support...?
- Add Nodemon HMR for backend server
- Connect backend to frontend with axios