News for hackers. Stuff that matters.
Re:Show HN: Remult – a CRUD framework for full-stack TypeScript by darepublic on Sunday May 22, 2022 @01:43PM (#31470777)
I may try this out since I am handrolling something similar for a project but I am strapped for time. Only thing is I am generating types from an openapi spec and sharing the types with ui as a dependency. I somewhat prefer that approach as I end up with an openapi spec and I don't need any framework whatsoever beyond perhaps a dev dependency on type generation from openapi doc
Re:Show HN: Remult – a CRUD framework for full-stack TypeScript by nawgz on Sunday May 22, 2022 @05:20PM (#31472915)
I like to use Hasura to give me full GraphQL access to a PostgreSQL/MSSQL database and then I can use graphql-codegen to get real, schema-based frontend types with no need for more tools than Hasura and graphql-codegen. Not sure that'll help you here but it's a thought.

I will note the MSSQL version of Hasura seems to be slightly behind in documentation, not sure about features though

Re:Show HN: Remult – a CRUD framework for full-stack TypeScript by darepublic on Sunday May 22, 2022 @06:35PM (#31473492)
unfortunately I am in the anti-graphql camp
Re:Show HN: Remult – a CRUD framework for full-stack TypeScript by nawgz on Tuesday May 24, 2022 @12:41PM (#31494373)
Why? It has meaningful schemas and therefore type generation, and it performs really well on an implementation like Hasura

Surely swagger isn’t a better tool than Hasura and GraphQL-codegen

Re:Show HN: Remult – a CRUD framework for full-stack TypeScript by goodoldneon on Sunday May 22, 2022 @02:14PM (#31471100)
What are you using to codegen the types?
Re:Show HN: Remult – a CRUD framework for full-stack TypeScript by darepublic on Sunday May 22, 2022 @06:12PM (#31473325)
I haven't done it yet. I've just set up a monorepo and prototyped sharing of types from backend to frontend. Googling it seemed like there were some decent options for type generation from swagger, i.e. https://github.com/drwpow/openapi-typescript
Re:Show HN: Remult – a CRUD framework for full-stack TypeScript by goodoldneon on Sunday May 22, 2022 @07:02PM (#31473664)
Take a look at https://github.com/bcherny/json-schema-to-typescript, too. I used it successfully at a previous job. IIRC, I had to write some code to convert OpenAPI to JSON Schema but it wasn’t onerous