Node Express.js backend boilerplate for API gateway using Express.js framework and TypeScript as typed language. The boilerplate is built and adopted repository pattern and support any service provider to be scalable and maintainable with small team, but I understand the boilerplate is very early, you can see authentication pattern with Supabase or Local DB.
The codes is not ready to PRODUCTION, currently still using development.
please use yarn
or pnpm
for recommendation
I used to yarn
as common package manager
- yarn install
- yarn dev
- yarn build
config
: Config environment and config for providercontroller
: Controller for routescore
: the main services appentities
: classes of service entititesinterface
: Type interface of classesmiddleware
: Middleware collectionroutes
: list of API endpointsservices
: collection of service provider
- Auth --> using Supabase Authentication Flow
- ORM --> using Prisma to interact database,it serves as an intermediary layer between applications and databases. the sample project used to MongoDB Atlas
Next big thing
- SMTP tool with Resend
- Logger with winston
- Firebase
the boilerplate is designed to easy to use end-to-end test, you can find out directory in tests
Please email to [email protected] or visit https://linkedin.com/in/dianafrial
Let me know if any bug issue or request pull requesst
Thanks