Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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