Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anjasfedo/bun-express
Express.js API with Prisma, Firebase, Zod, JWT, and Redis on Bun.js
https://github.com/anjasfedo/bun-express
bunjs expressjs firebase firestore jwt redis zod
Last synced: about 1 month ago
JSON representation
Express.js API with Prisma, Firebase, Zod, JWT, and Redis on Bun.js
- Host: GitHub
- URL: https://github.com/anjasfedo/bun-express
- Owner: Anjasfedo
- Created: 2024-04-20T06:01:37.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-04-27T14:07:24.000Z (7 months ago)
- Last Synced: 2024-10-14T03:02:13.911Z (about 1 month ago)
- Topics: bunjs, expressjs, firebase, firestore, jwt, redis, zod
- Language: TypeScript
- Homepage:
- Size: 117 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bun-express
To install dependencies:
```bash
bun install
```To run:
```bash
bun run index.ts
```This project was created using `bun init` in bun v1.1.4. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime.
`bun add -d prisma`
`bun add @prisma/client`Bun Pisma Init
`bunx prisma init --datasource-provider sqlite``bunx prisma migrate dev --name init`
Folder structure
- configs, shared configuration such db
- controllers, endpoint handler
- middleware, midleware function
- models, model of database
- routes, route of controller
- schemas, zod validation of request
- services, services for controller
- utils, helper function