https://github.com/bravo68web/try-couchbase
Bun X Couchbase X Hono
https://github.com/bravo68web/try-couchbase
api bun couchbase hono index nosql search
Last synced: about 2 months ago
JSON representation
Bun X Couchbase X Hono
- Host: GitHub
- URL: https://github.com/bravo68web/try-couchbase
- Owner: BRAVO68WEB
- Created: 2025-01-15T12:10:45.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-16T09:36:19.000Z (over 1 year ago)
- Last Synced: 2025-03-09T22:54:27.044Z (over 1 year ago)
- Topics: api, bun, couchbase, hono, index, nosql, search
- Language: TypeScript
- Homepage:
- Size: 495 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Hono X Couchbase

This is a simple project to demonstrate how to use Nodejs with Couchbase Server via the official Nodejs SDK and bun.
## Prerequisites
- Bun (v1.1.43) - [https://bun.sh](https://bun.sh)
- Couchbase Server (v7) - [https://www.couchbase.com](https://www.couchbase.com)
## Project Structure
The project structure is based on the MVC pattern. The structure is as follows:
```
├── app.ts -> This is the main file where the application is initialized
├── index.ts -> This is the entry point of the application
├── config -> This is where the configuration files are stored
│ ├── env.ts
│ └── ottoman.ts
├── controllers -> This is where the controllers are stored
│ ├── book.controller.ts
│ ├── review.controller.ts
│ └── user.controller.ts
├── middlewares -> This is where the middlewares are stored
│ └── auth.middleware.ts
├── models -> This is where the models are stored
│ ├── book.model.ts
│ ├── review.model.ts
│ └── user.model.ts
├── routes -> This is where the routes are stored
│ ├── book.router.ts
│ ├── review.router.ts
│ └── user.router.ts
├── schemas -> This is where the validation schemas are stored
│ ├── book.ts
│ ├── healthcheck.ts
│ ├── review.ts
│ └── user.ts
├── services -> This is where the business logic is stored
│ ├── book.service.ts
│ ├── review.service.ts
│ └── user.service.ts
└── validators -> This is where the validation schemas are stored
├── books.ts
├── healthcheck.ts
├── reviews.ts
└── users.ts
```
## Docs

