# help

T Indie

05/19/2022, 2:25 PM
Hi everyone and thanks for this amazing tool and community, just wondering if there exists a structured boilerplate with the best patterns for a Rest API with RDS (Postgres) that one can use as a reference. I already using the kysely-data-API ORM mentioned by @thdxr ( My my main pain-points are how to make functions reusable, validations, mapping from underscore to camelcase for fields and reducing the amount of copy-paste I am doing for each route 😄 not to mention testings etc. Much thanks


05/19/2022, 2:26 PM
hey we don't actually have anything this specific
my pattern is to have a
package that contains 90% of my code
and then
which just call into core
if you watch my talk for the graphql stack I demonstrate this pattern

you can just ignore the graphql parts and pretend they're route handlers

T Indie

05/19/2022, 5:05 PM
that's great Thanks 🙂 I will try to make an open-source one when I finish the project maybe it can be helpful 🙌