MENU

Fun & Interesting

Building a scalable API with NodeJS (tutorial for beginners)

notJust․dev 23,486 7 months ago
Video Not Working? Fix It Now

Want to make deployment effortless? Try Genezio to simplify scaling and deploying your API. Sign up for free using this link: https://bit.ly/483mM1F In this beginner friendly tutorial, you’ll learn how to build a scalable and production-ready REST API for an ecommerce application using NodeJS, TypeScript, and Express. We’ll guide you step-by-step through essential backend tools like Drizzle for database interactions and Postgres for data storage, all while integrating Genezio to simplify deployment. Let's get started 🚀 *📝 Project Page:* https://notjust.dev/projects/scalable-api-nodejs *📃 Guide:* https://assets.notjust.dev/ecom *💻 Source Code:* https://github.com/notJust-dev/FullstackEcommerce ⚛️ *React Native Mastery* is the *ONLY* course you need to Master mobile development with React Native & Expo 🚀 *Join the waitlist now:* https://www.notjust.dev/react-native-mastery 📚 This video includes a lot of tools and technologies, providing an excellent opportunity to learn about: - TypeScript for safer, more maintainable code - NodeJS for efficient, scalable backend development - Express for handling API routes and middleware - Drizzle for working with databases - Postgres as a robust database solution - Genezio for serverless deployment and scaling ❗Try our *FREE* 2-day Masterclass on notJust.Academy: https://assets.notjust.dev/masterclass/?utm_source=youtube&utm_medium=livestream&utm_content=11oct24 💡 Have an idea for a future tutorial? Share it on our Idea Board: https://github.com/orgs/notJust-dev/discussions *💬 Join the notJust Development gang and let's build together:* Twitter: https://twitter.com/VadimNotJustDev Instagram: https://www.instagram.com/VadimNotJustDev Facebook: https://www.facebook.com/notjustdev LinkedIn: https://www.linkedin.com/in/vadimsavin Discord: https://discord.gg/VpURUN2 Timecodes: 0:00 Intro and Project Overview 3:15 Genezio - the Fastest Full-Stack Cloud 5:31 Mega Project Structure: 4 Parts 6:51 Prerequisites for the Project 10:04 Setting up the Project 13:50 Installing Express 23:20 Setting up Git 34:20 Creating Product Routes and Controllers 1:08:26 Setting up the PostgreSQL Database 1:10:45 Installing and Setting up Drizzle ORM 1:37:55 Implementing CRUD operations for Products 2:12:04 Validation with Zod + Drizzle Schema 2:59:15 Setting up Authentication and Authorisation 3:49:25 Building the Proejct and Fixing "ts build" 3:56:38 Deploying the API to Genezio 4:06:52 Implementing the Orders and Order items CRUD 4:39:59 Listing the Orders 4:56:34 Outro Disclaimer: This build is for educational purposes only. All views, opinions, and technology choices expressed in this video are my own and do not represent the views, opinions, or technology choices of any entity I have been, am now, or will be affiliated with. #notjustdev #restapi #reactnative

Comment