Build Servers With Bunjs Fastify And Prisma
Published 11/2023
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 2.45 GB | Duration: 5h 13m
Published 11/2023
MP4 | Video: h264, 1920x1080 | Audio: AAC, 44.1 KHz
Language: English | Size: 2.45 GB | Duration: 5h 13m
Learn to Build API Services Using BunJS, Fastify and PrismaORM
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
Requirements
This is an intermediate level course. You should know basic TypeScript and some server development
Description
BunJS 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!
Overview
Section 1: Introduction to Bun
Lecture 1 What Will We Learn?
Lecture 2 Package and Project Management
Lecture 3 Developer Tools
Lecture 4 High Performance JavaScript Runtime
Section 2: Learn Core Fastify Features
Lecture 5 What Will We Learn?
Lecture 6 Understanding How to Create Typed Routing
Lecture 7 Understanding Plugins and Scope
Lecture 8 Understanding Decorators
Lecture 9 Understanding Hooks
Lecture 10 Understanding Error Handling
Section 3: Build a Fasitify Server with Bun and Prisma
Lecture 11 What Will We Learn?
Lecture 12 Creating Base Build of Docker and Postgres
Lecture 13 Understanding Prisma
Lecture 14 Build Fastify Server Repository
Lecture 15 Build Fastify Server Routes
Developers new to BunJS that would like to get started building apps with the runtime