Fastify, Prisma, Docker and Swagger REST API Boilerplate project. Using Typescript (ovbiously)

This is more like a work-in-progress type of thing, but a few weeks to go I had to write some kind of project skeleton to to demonstrate how to use Fastify and their awesome schema feature (which probably deserves it's own blog post) and also include Prisma for the database.

This is the result of such task:

https://github.com/danielm/fastify-prisma-swagger-rest-boilerplate

Well, kinda... It's pending some review and the original Schema was simply reduced to a basic Product-Category relation it worth a look while searching for examples.

The Stack

  • Fastify | Blazingly fast web framework, Typescript ready!
  • Prisma | Typescript ready ORM to work with databases :)
  • Swagger | OpeanAPI & easy documentation, made automatically from our Fastify schemas! Also provides a simple playground frontend.
  • Docker image building, and PM2 for Node process management (for production build)
  • Debugging ready, and Postman testing

More details and documentation can be found at the Readme.md file, how to run it , compile docker images, etc..

"Sadly" the project uses MongoDB but is something I'm gonna move away when  I get the time to probably Postgress or SQLite.

About
Related Posts
  • Typescript is the present and future of Node/JS, move on!

    Outside of personal projects most of my career been on the web, i been through the vanilla era, the jquery era, and the React prison we now live on. TypeScript comes to make your life not as painful, and actually give you a great developer experience.

Comments
The comments are closed on this section.
Hire me!

I'm currently open for new projects or join pretty much any project i may fit in, let me know!

Read about what I do, or contact me for details.