This is a curated collection of examples that will help you learn how to build applications with Platformatic open-source tools. They're grouped into the following categories:
A series of how-to videos that will help you get up and running building applications with Platformatic:
- Understand the parts of a Platformatic app
- Work with database migrations
- Create a plugin
- Add REST API routes
- Query the database
- Extend the GraphQL API
- Debug a Platformatic app
- Customise data with entity hooks
Uses: Platformatic Runtime, Platformatic Composer, Platformatic DB, Platformatic Client
A modular monolith application built with Platformatic Runtime, Composer, DB and Client.
Uses: Platformatic DB, Auth0, Next.js, React
A full stack blog application built with Platformatic DB, Auth0 and Next.js.
Uses: GitHub Actions, Platformatic Cloud, Vercel, Neon
Blog app with GitHub Actions workflows for automated preview and production deploys.
Uses: Platformatic DB, Astro, urql
This is the application code for the Movie Quotes App Tutorial.
Uses: Platformatic DB
A tasks API built with Platformatic DB.
Uses: Fastify, Platformatic Service
Shows how to migrate a Fastify app to Platformatic Service, with before and after applications.
Uses: Express, Fastify, Platformatic Service
Shows how to migrate an Express app to Platformatic Service, with before and after applications.
Uses: Platformatic DB, @fastify/oauth2
Simple authentication server built on top of Platformatic.
Uses: Platformatic DB, Postgres
Tiny Queue System that will call your service back after a given time.
Uses: Platformatic AI Warp, React, Platformatic frontend Client
This tutorial will help you learn how to build an AI application with Platformatic AI-warp, integrating it with your frontend applications using Platformatic Frontend Client
Uses: Platformatic DB, Astro, urql
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.
Uses: Platformatic Runtime, Platformatic Composer, Platformatic DB, Platformatic Client, Platformatic Cloud
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:
- Create and configure a Platformatic Runtime app with multiple services
- Three Platformatic DB services, each with their own databases
- A Platformatic Composer service which aggregates multiple service's REST APIs into a composed API
- Customise the composed API that's automatically generated in a Composer service
- Generate a client for a service's REST API and use it in a Platformatic service to make API requests
- Add custom functionality to a Composer service's composed API by modifying its routes and responses
- Deploy a Runtime app to Platformatic Cloud
Uses: Platformatic DB, Auth0, Next.js, React
In this tutorial we'll learn how to:
- Set up an application on Auth0
- Add user metadata to JSON Web Tokens (JWTs) on Auth0
- Create a Platformatic DB app and configure authorization
- Create a Next.js app that integrates with Auth0 and our Platformatic app's REST API
Uses: GitHub Actions, Platformatic Cloud, Platformatic DB, Neon, Postgres, Vercel, Next.js, Auth0
In this tutorial we'll learn how to:
- Create an app on Platformatic Cloud to deploy our Platformatic DB app to
- Create a project on Neon to deploy our Postgres database to
- Create a project on Vercel to deploy our Next.js front end app to
- Create applications on Auth0 to enable authentication flows for preview and production apps
- Create GitHub Actions workflows to:
- Automatically deploy a preview of our blog app when we open a pull request on GitHub
- Automatically deploy our blog app to production when we merge a pull request or push to our main branch on GitHub
- Build a polls API with Platformatic DB — 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.
- 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.
A collection of guides for working with Platformatic open-source tools.
Uses: Platformatic DB, REST
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.
Uses: Fastify, Platformatic Service
Platformatic Service 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.
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.
Uses: Express, Fastify, Platformatic Service
If you have an existing Express 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
plugin to help you rapidly migrate your existing Express application to use Platformatic Service, and then deploy it to Platformatic Cloud.
- Watch Platformatic Talks on YouTube — Recordings of our conference and meetup talks all in one handy playlist.
- Building a Modular Monolith with Fastify — Code for the 'Building a Modular Monolith with Fastify' talk.
- Choose your own API adventure with Platformatic DB — Code for the 'Choose your own API adventure with Platformatic DB' talk.