https://github.com/mikro-orm/elysia-bun-example-app
https://github.com/mikro-orm/elysia-bun-example-app
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mikro-orm/elysia-bun-example-app
- Owner: mikro-orm
- Created: 2024-08-09T21:33:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-11T17:22:12.000Z (over 1 year ago)
- Last Synced: 2024-08-11T18:53:43.830Z (over 1 year ago)
- Language: TypeScript
- Size: 30.3 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elysia + libSQL + Bun example integration
1. Install dependencies via `bun install`
2. Create schema via `bunx -b mikro-orm schema:create --run`
3. Run via `bun start` or `bun start:dev` (watch mode)
4. Example API is running on localhost:3000
Available routes:
```
GET /author finds all authors
GET /author/:id finds author by id
POST /author creates new author
PUT /author/:id updates author by id
```
```
GET /book finds all books
GET /book/:id finds book by id
POST /book creates new book
PUT /book/:id updates book by id
```