remult / remult

Full-stack CRUD, simplified, with SSOT TypeScript entities
https://remult.dev
MIT License
2.78k stars 125 forks source link

Hono and Elysia Backend Remult Support #354

Closed bensos000 closed 4 months ago

bensos000 commented 4 months ago

I feel too productive with remult and it would be awesome if it supports bun new api frameworks hono and elysia. nodejs api frameworks like fastify is fast but elysia and hono are top speed frameworks right now. they have the same express like syntax but focusing on speed and with bun it's faster and i would like to support bun api frameworks if possible with the remult team.

image

noam-honig commented 4 months ago

Hi @bensos000,

I've added support to Hono to our exp version, can you check it out and see that it works for you?

npm i remult@exp

The specific version it was introduced is: remult@0.25.6-exp.6

noam-honig commented 4 months ago

Here's an example :)

import { Hono } from 'hono'
import { remultHono } from 'remult/remult-hono'

const app = new Hono()

const api = remultHono({}) 
app.route('', api) 

export default app
bensos000 commented 4 months ago

i have tested the basic entity crud operations and it works image image image image image here is the source code with node and typescript : https://github.com/bensos000/hono-remult

bensos000 commented 4 months ago

i have deleted express from this sample demo and used hono instead and it works with liveQuery 👍 here is the link : https://github.com/bensos000/remultmonorepo

noam-honig commented 4 months ago

Looks great - I've also added it to our automatic test suite.