Get backend and frontend starters running with Bun Js.
The backend starter is a simple REST API with a Postgres database.
branch: backend-starter
It's an architecture to get you started with Bun API typescript.
ORM : Prisma use Express middleware
- Clone the repository
- Install dependencies with
bun install
- Run the server with
bun dev
dev mode orbun start
production mode - Go to
http://localhost:3000/swagger/
to see the API documentation - architecture:
prisma/
contains the ORMprisma/prisma.schema
contains the models
src/
contains the source codesrc/controllers/
contains the controllerssrc/services/
contains the servicessrc/utils/
contains the utilssrc/utils/prismaClient.ts
is the entry point of the ORMsrc/server.ts
is the entry point of the applicationsrc/routers
contains the routessrc/middlewares
contains the middlewaressrc/types
contains the typessrc/config
contains the config
The frontend starter is a SSR React application.
branch: frontend-starter
It's a atomic design architecture to get you started with Bun SSR REACT typescript.