Course Information
Course Overview
Learn to Build API Services Using Bun, TypeScript, Node and PrismaORM
Bun is a new high performance JavaScript runtime. It's combination of speed and capability is generating enormous attention in the JavaScript ecosystem.
In this course we will explore the major features of Bun and see how, together, these features provide a fun, fast and robust developer experience. We will use Bun to create a complete Twitter clone API using Bun, TypeScript, Fastify, PrismaORM, and Postgres. And deploy the service onto a Docker image.
The JavaScript ecosystem has been stagnant for a while now. Dependency hell. Slow project compilation. Seemingly random build errors. The need to spend huge amounts of time configuring and trouble shooting project issues. JavaScript fatigue has become a very real issue.
In this course we'll see that Bun is far more than just a fast runtime. Bun includes build tools that streamline the task of transpiling and bundling our apps. NPM package installations are lightening fast. Bun has an enormously powerful CLI, which is included out of the box. Creating and setting up new projects takes almost no effort at all. And on top of all this, Bun's capabilities also include NodeJS compatibility. So you can keep using most of your favorite frameworks and libraries and just focus on building your app. Bun is truly next level tech!
Course Content
- 3 section(s)
- 15 lecture(s)
- Section 1 Introduction to Bun
- Section 2 Learn Core Fastify Features
- Section 3 Build a Fasitify Server with Bun and Prisma
What You’ll Learn
- Learn how to create and setup new projects using Bun
- Understand Bun's super easy module resolution system that can eliminate compatibility issues between CommonJS and ES6 modules
- Understand Bun's built-in CLI that can do everything from running our app
- to building our project
- and installing our package dependencies
- Review Bun's NodeJS API compatibility. We can now have a modern fast runtime without sacrificing compatibility with Node.
- Learn how to create typed and validated Routes with Fastify and its Schema system
- Understand how Fastify's Plugin and Scoping system work
- Understand how to use Decorators and share state and functionality globally throughout the service
- Understand how to use Hooks to get our code to run at the desired time
- Understand how to handle errors that may happen in our Fastify routes
- Understand database access and ORM using PrismaORM. Build a fully functional Repository layer using PrismaORM and Postgres
- Build a Twitter clone API service using TypeScript, Fastify, PrismaORM and Postgres
- Use Docker to deploy our service and get it ready for the cloud
Reviews
-
FFlorian Koch
Good course to learn fastify together with typescript. You can follow this course also with node. Thank you for this course.
-
EErik Storli
Easy introductory course to understand how the technologies worked.
-
JJoão Kruschewsky
You could start classes by doing things from scratch and not start with everything already ready
-
KKarel Šlaj
I like about this course that David doesn't have that VSCode extension that always pops up to show a tooltip and covers the code on the line he has just finished and can download everything directly just from a single GitHub repository (all starting and ending version for every lesson are included). Its definitely a good course on Fastify and Prisma as well as introduction to Bun. You can fast-forward some of the lectures as they continue writing a code related to an already explained topic. By the end of the course, you should be able to make servers with the mentioned technologies; However, I think it is more likely that you will use Elysia servers instead, when working with Bun. Overall, well made course on a very specific topic.