{"id":19023072,"url":"https://github.com/platformatic/examples","last_synced_at":"2025-09-04T18:43:46.461Z","repository":{"id":168508535,"uuid":"633474872","full_name":"platformatic/examples","owner":"platformatic","description":"Examples to help you learn how to build with Platformatic open-source tools.","archived":false,"fork":false,"pushed_at":"2024-05-13T14:00:29.000Z","size":304,"stargazers_count":13,"open_issues_count":3,"forks_count":3,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-20T19:52:28.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://oss.platformatic.dev","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/platformatic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-27T15:19:09.000Z","updated_at":"2025-03-24T11:34:16.000Z","dependencies_parsed_at":"2024-05-13T15:37:48.979Z","dependency_job_id":null,"html_url":"https://github.com/platformatic/examples","commit_stats":null,"previous_names":["platformatic/examples"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platformatic%2Fexamples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platformatic%2Fexamples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platformatic%2Fexamples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/platformatic%2Fexamples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/platformatic","download_url":"https://codeload.github.com/platformatic/examples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250400045,"owners_count":21424284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T20:28:37.539Z","updated_at":"2025-04-23T08:34:44.292Z","avatar_url":"https://github.com/platformatic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Platformatic Examples ⚡️\n\nThis is a curated collection of examples that will help you learn how to build applications with [Platformatic open-source tools](https://docs.platformatic.dev/). They're grouped into the following categories:\n\n- [How-tos](#how-tos)\n- [Applications](#applications)\n- [Tutorials](#tutorials)\n- [Guides](#guides)\n- [Workshops](#workshops)\n- [Talks](#talks)\n\n\u003ca name=\"how-tos\"\u003e\u003c/a\u003e\n\n## 🙋 How-tos\n\nA [series of how-to videos](https://www.youtube.com/playlist?list=PL_x4nRdxj60LEXoK5mO-ixOETQTfhqmA7) that will help you get up and running building applications with Platformatic:\n\n- [Understand the parts of a Platformatic app](https://www.youtube.com/watch?v=b6G3xZlzJNk\u0026list=PL_x4nRdxj60LEXoK5mO-ixOETQTfhqmA7)\n- [Work with database migrations](https://www.youtube.com/watch?v=iTxWapoG0Bo\u0026list=PL_x4nRdxj60LEXoK5mO-ixOETQTfhqmA7)\n- [Create a plugin](https://www.youtube.com/watch?v=6srzPzL_iKM\u0026list=PL_x4nRdxj60LEXoK5mO-ixOETQTfhqmA7)\n- [Add REST API routes](https://www.youtube.com/watch?v=1_U8DIkYTH8\u0026list=PL_x4nRdxj60LEXoK5mO-ixOETQTfhqmA7)\n- [Query the database](https://www.youtube.com/watch?v=021fOdVML8E\u0026list=PL_x4nRdxj60LEXoK5mO-ixOETQTfhqmA7)\n- [Extend the GraphQL API](https://www.youtube.com/watch?v=HjHYFpzW43w\u0026list=PL_x4nRdxj60LEXoK5mO-ixOETQTfhqmA7)\n- [Debug a Platformatic app](https://www.youtube.com/watch?v=5yxlSU74pr4\u0026list=PL_x4nRdxj60LEXoK5mO-ixOETQTfhqmA7)\n- [Customise data with entity hooks](https://www.youtube.com/watch?v=gJ4PgDiEQTU\u0026list=PL_x4nRdxj60LEXoK5mO-ixOETQTfhqmA7)\n\n\u003ca name=\"applications\"\u003e\u003c/a\u003e\n\n## 💡 Applications\n\n### [build-modular-monolith-with-platformatic](./applications/build-modular-monolith-with-platformatic)\n\n*Uses: Platformatic Runtime, Platformatic Composer, Platformatic DB, Platformatic Client*\n\nA modular monolith application built with Platformatic Runtime, Composer, DB and Client.\n\n\u003cimg src=\"https://cdn.hashnode.com/res/hashnode/image/upload/v1688954748161/869120f8-6a35-49f3-865d-4b0ada2b1618.png?w=1000\u0026auto=format\u0026format=webp\" width=\"500\"\u003e\n\n### [tutorial-platformatic-auth0-nextjs](https://github.com/platformatic/tutorial-platformatic-auth0-nextjs)\n\n*Uses: Platformatic DB, Auth0, Next.js, React*\n\nA full stack blog application built with Platformatic DB, Auth0 and Next.js.\n\n\u003cimg src=\"https://cdn.hashnode.com/res/hashnode/image/upload/v1681880277544/4fdb4b6e-06d4-4c08-b818-898308017466.png?w=1000\u0026auto=format\u0026format=webp\" width=\"500\"\u003e\n\n### [deploy-full-stack-app-platformatic-vercel-neon](./applications/deploy-full-stack-app-platformatic-vercel-neon)\n\n*Uses: GitHub Actions, Platformatic Cloud, Vercel, Neon*\n\nBlog app with GitHub Actions workflows for automated preview and production deploys.\n\n\u003cimg src=\"https://cdn.hashnode.com/res/hashnode/image/upload/v1684467508618/5d29ce19-96d9-49a7-8742-501bbb7b4de5.png?w=1000\u0026auto=format\u0026format=webp\" width=\"500\"\u003e\n\n### [tutorial-movie-quotes-app](https://github.com/platformatic/tutorial-movie-quotes-app/)\n\n*Uses: Platformatic DB, Astro, urql*\n\nThis is the application code for the [Movie Quotes App Tutorial](https://docs.platformatic.dev/docs/getting-started/movie-quotes-app-tutorial/).\n\n### [tasks-api-platformatic-db](./applications/tasks-api-platformatic-db)\n\n*Uses: Platformatic DB*\n\nA tasks API built with Platformatic DB.\n\n### [migrate-fastify-app-to-platformatic-service](./applications/migrate-fastify-app-to-platformatic-service)\n\n*Uses: Fastify, Platformatic Service*\n\nShows how to migrate a Fastify app to Platformatic Service, with before and after applications.\n\n### [migrate-express-app-to-platformatic-service](./applications/migrate-express-app-to-platformatic-service)\n\n*Uses: Express, Fastify, Platformatic Service*\n\nShows how to migrate an Express app to Platformatic Service, with before and after applications.\n\n### [authentication-server](https://github.com/platformatic/authentication-server/)\n\n*Uses: Platformatic DB, @fastify/oauth2*\n\nSimple authentication server built on top of Platformatic.\n\n### [unscalable-queue-system](https://github.com/platformatic/unscalable-queue-system/)\n\n*Uses: Platformatic DB, Postgres*\n\nTiny Queue System that will call your service back after a given time.\n\n\u003ca name=\"tutorials\"\u003e\u003c/a\u003e\n\n## 🧑‍💻 Tutorials\n\n### [Building AI applications with Platformatic AI Warp](https://blog.platformatic.dev/building-ai-applications-with-platformatic-ai-warp)\n\n*Uses: Platformatic AI Warp, React, Platformatic frontend Client*\n\n\u003e This tutorial will help you learn how to build an AI application  with [Platformatic AI-warp](https://marketplace.platformatic.dev/#/detail/template/f27b158e-90d8-491d-8658-df2ee050bb22), integrating it with your frontend applications using [Platformatic Frontend Client](https://docs.platformatic.dev/docs/client/frontend)\n\n\n### [Movie Quotes App tutorial](https://docs.platformatic.dev/docs/getting-started/movie-quotes-app-tutorial)\n\n*Uses: Platformatic DB, Astro, urql*\n\n\u003e This tutorial will help you learn how to build a full stack application on top of Platformatic DB. We're going to build an application that allows us to save our favourite movie quotes. We'll also be building in custom API functionality that allows for some neat user interaction on our frontend.\n\n### [Build and deploy a modular monolith with Platformatic](https://blog.platformatic.dev/build-and-deploy-a-modular-monolith-with-platformatic)\n\n\u003ca href=\"https://blog.platformatic.dev/build-and-deploy-a-modular-monolith-with-platformatic\"\u003e\u003cimg src=\"https://cdn.hashnode.com/res/hashnode/image/upload/v1688570215856/307772ef-2021-4cb0-bcd7-97ac50e26700.png?w=1000\u0026auto=format\u0026format=webp\u0026fm=png\" width=\"500\"\u003e\u003c/a\u003e\n\n*Uses: Platformatic Runtime, Platformatic Composer, Platformatic DB, Platformatic Client, Platformatic Cloud*\n\n\u003e In this tutorial we'll create a \"modular monolith\" Library application. It will be a Platformatic Runtime app which contains multiple Platformatic DB and Composer services. We'll learn how to:\n\u003e\n\u003e - Create and configure a Platformatic Runtime app with multiple services\n\u003e   - Three Platformatic DB services, each with their own databases\n\u003e   - A Platformatic Composer service which aggregates multiple service's REST APIs into a composed API\n\u003e - Customise the composed API that's automatically generated in a Composer service\n\u003e - Generate a client for a service's REST API and use it in a Platformatic service to make API requests\n\u003e - Add custom functionality to a Composer service's composed API by modifying its routes and responses\n\u003e - Deploy a Runtime app to Platformatic Cloud\n\n### [Build a secure web application with Platformatic, Auth0 and Next.js](https://blog.platformatic.dev/build-a-secure-web-application-with-platformatic-auth0-and-nextjs)\n\n\u003ca href=\"https://blog.platformatic.dev/build-a-secure-web-application-with-platformatic-auth0-and-nextjs\"\u003e\u003cimg src=\"https://cdn.hashnode.com/res/hashnode/image/upload/v1681923099651/35ba11d6-b4db-4bbc-9fea-addb4b6eac29.png?w=1000\u0026auto=format\u0026format=webp\u0026fm=png\" width=\"500\"\u003e\u003c/a\u003e\n\n*Uses: Platformatic DB, Auth0, Next.js, React*\n\n\u003e In this tutorial we'll learn how to:\n\u003e\n\u003e - Set up an application on Auth0\n\u003e - Add user metadata to JSON Web Tokens (JWTs) on Auth0\n\u003e - Create a Platformatic DB app and configure authorization\n\u003e - Create a Next.js app that integrates with Auth0 and our Platformatic app's REST API\n\n### [Deploy a full stack app with Platformatic, Vercel and Neon](https://blog.platformatic.dev/deploy-a-full-stack-app-with-platformatic-vercel-and-neon)\n\n\u003ca href=\"https://blog.platformatic.dev/deploy-a-full-stack-app-with-platformatic-vercel-and-neon\"\u003e\u003cimg src=\"https://cdn.hashnode.com/res/hashnode/image/upload/v1684468013088/80a375a7-b0b3-4c9b-9aba-3504168ff05c.png?w=1000\u0026auto=format\u0026format=webp\u0026fm=png\" width=\"500\"\u003e\u003c/a\u003e\n\n*Uses: GitHub Actions, Platformatic Cloud, Platformatic DB, Neon, Postgres, Vercel, Next.js, Auth0*\n\n\u003e In this tutorial we'll learn how to:\n\u003e\n\u003e - Create an app on Platformatic Cloud to deploy our Platformatic DB app to\n\u003e - Create a project on Neon to deploy our Postgres database to\n\u003e - Create a project on Vercel to deploy our Next.js front end app to\n\u003e - Create applications on Auth0 to enable authentication flows for preview and production apps\n\u003e - Create GitHub Actions workflows to:\n\u003e   - Automatically deploy a preview of our blog app when we open a pull request on GitHub\n\u003e   - Automatically deploy our blog app to production when we merge a pull request or push to our main branch on GitHub\n\n### Community Tutorials\n\n- **[Build a polls API with Platformatic DB](https://dominuskelvin.dev/blog/platformatic-polls-api)** — If you want to learn how to rapidly build REST and GraphQL APIs with the full flexibility of Platformatic DB, Kelvin’s got you covered.\n- **[Building a Link Curation API with Platformatic](https://www.ianwootten.co.uk/2023/03/28/building-a-link-curation-api-with-platformatic/)** — Ian takes you step-by-step through building a custom GraphQL API with Platformatic DB. It’s a great way to get familiar with the features of Platformatic DB and learn how to add custom functionality to your app.\n\n\u003ca name=\"guides\"\u003e\u003c/a\u003e\n\n## 🗺️ Guides\n\n### [OSS Guides](https://docs.platformatic.dev/docs/category/guides)\n\nA collection of guides for working with Platformatic open-source tools.\n\n### [Building REST APIs with Platformatic DB](https://blog.platformatic.dev/building-rest-apis-with-platformatic-db)\n\n\u003ca href=\"https://blog.platformatic.dev/building-rest-apis-with-platformatic-db\"\u003e\u003cimg src=\"https://hashnode.com/utility/r?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1683216881781%2F472deaa6-7785-4f30-926b-a1ddc6338029.png%3Fw%3D1200%26auto%3Dformat%26format%3Dwebp%26fm%3Dpng\" width=\"500\"\u003e\u003c/a\u003e\n\n*Uses: Platformatic DB, REST*\n\n\u003e In this guide we’re going to take a tour of the automatic REST API that Platformatic DB generates for us. We’ll learn about all of the features it provides, as well as how we can extend it with our own custom REST API routes.\n\n### [How to migrate a Fastify app to Platformatic Service](https://blog.platformatic.dev/how-to-migrate-a-fastify-app-to-platformatic-service)\n\n\u003ca href=\"https://blog.platformatic.dev/how-to-migrate-a-fastify-app-to-platformatic-service\"\u003e\u003cimg src=\"https://hashnode.com/utility/r?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1685388617517%2Fb1236004-894d-4302-adef-70b87466f9ab.png%3Fw%3D1200%26auto%3Dformat%26format%3Dwebp%26fm%3Dpng\" width=\"500\"\u003e\u003c/a\u003e\n\n*Uses: Fastify, Platformatic Service*\n\n\u003e [Platformatic Service](https://docs.platformatic.dev/docs/reference/service/introduction) is the natural evolution of the build-it-from-scratch Fastify development experience. It provides a solid foundation for building Node.js applications on top of Fastify, with best practices baked in.\n\u003e\n\u003e The good news is that the path to migrate a Fastify application to use Platformatic Service is fairly straightforward. This guide covers some of the things you'll need to know when migrating an application, as well as tips on different migration approaches.\n\n### [How to deploy an Express app to Platformatic Cloud](https://blog.platformatic.dev/how-to-deploy-an-express-application-to-platformatic-cloud)\n\n\u003ca href=\"https://blog.platformatic.dev/how-to-deploy-an-express-application-to-platformatic-cloud\"\u003e\u003cimg src=\"https://hashnode.com/utility/r?url=https%3A%2F%2Fcdn.hashnode.com%2Fres%2Fhashnode%2Fimage%2Fupload%2Fv1686685153803%2F8a87b92e-84ac-4c14-a910-f4af38596bd4.png%3Fw%3D1200%26auto%3Dformat%26format%3Dwebp%26fm%3Dpng\" width=\"500\"\u003e\u003c/a\u003e\n\n*Uses: Express, Fastify, Platformatic Service*\n\n\u003e If you have an existing [Express](http://expressjs.com/) application, migrating it to Fastify could potentially be time consuming, and might not be something that you're able to prioritise right now. You can however still take advantage of Fastify, as well as our open-source tools and Cloud hosting service. In this guide you'll learn how to use the [`@fastify/express`](https://www.npmjs.com/package/@fastify/express) plugin to help you rapidly migrate your existing Express application to use Platformatic Service, and then deploy it to Platformatic Cloud.\n\n\u003ca name=\"workshops\"\u003e\u003c/a\u003e\n\n## ⚒️ Workshops\n\n- [Node.js Backend Masterclass](https://github.com/platformatic/node-masterclass)\n- [Learn Fastify](https://github.com/platformatic/learn-fastify)\n- [Platformatic DB Workshop](https://github.com/platformatic/db-workshop)\n\n\u003ca name=\"talks\"\u003e\u003c/a\u003e\n\n## 🗣️ Talks\n\n- [Watch Platformatic Talks on YouTube](https://www.youtube.com/playlist?list=PL_x4nRdxj60ITjSWRGo_tIT-VF85xdf6W) — Recordings of our conference and meetup talks all in one handy playlist.\n- [Building a Modular Monolith with Fastify](https://github.com/mcollina/modular_monolith) — Code for the 'Building a Modular Monolith with Fastify' talk.\n- [Choose your own API adventure with Platformatic DB](https://github.com/platformatic/talk-choose-your-own-api-adventure-with-platformatic-db) — Code for the 'Choose your own API adventure with Platformatic DB' talk.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatformatic%2Fexamples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fplatformatic%2Fexamples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fplatformatic%2Fexamples/lists"}