How to build & deploy a MERN stack web application (typescript, mongo, express, react, node)

Web Dev Cody November 14, 2022
Video Thumbnail
Web Dev Cody Logo

Web Dev Cody

@webdevcody

About

This channel is a collection of various programming videos, tutorials, projects, talks, or anything software engineering and programming related. If you are new to coding and want to learn how to program or get a job in the industry, be sure to subscribe to my channel. There is a lot of great content on this channel to help you out in your coding goals.

Video Description

Deploy your websites with Hostinger: https://hostinger.com/webdevjunkie (get 10% off with code WEBDEVJUNKIE) project code: https://github.com/codyseibert/flashcardsage Learn how to build a full stack web application using vite to create and bundle our react single page application (spa). We will also be building a node rest api that will persist our data to a mongodb atlas cluster. 00:00 - Intro 01:37 - Hostinger Overview 14:56 - Vite React Setup 17:18 - Express Setup 32:09 - Mongo Atlas Setup 35:16 - Mongoose Setup 43:34 - API - Create Deck Endpoint 55:10 - .env file 01:01:56 - UI - Create Deck Page 01:16:32 - Fix Cors Error 01:21:58 - Fix Content Type 01:26:03 - API - GET Decks Endpoint 01:30:22 - UI - Fetch Decks 01:49:45 - API - Delete Deck Endpoint 01:52:59 - UI - Delete Deck Button 01:59:42 - UI - Setup React Router 02:03:21 - UI - Refactor Code 02:10:55 - API - Refactor Code 02:15:10 - API - Create Card Endpoint 02:20:02 - UI - Create Card 02:26:07 - API - Get Deck 02:27:50 - UI - Get Deck Code 02:30:42 - API - Delete Card 02:32:37 - UI - Delete Card 02:38:00 - UI changes and add Header 02:54:36 - Setting up API on VPS 03:03:07 - Setting up A Record 03:03:40 - Setup Caddy for HTTPS 03:06:28 - Build & Deploy React SPA 💬 Discord https://discord.gg/4kGbBaa 🔔 Newsletter http://eepurl.com/hnderP 📁. GitHub https://github.com/codyseibert My VSCode Extensions: - theme: material community high contrast - fonts: Menlo, Monaco, 'Courier New', monospace - errors: Error Lens - extra git help: Git Lens - tailwind css intellisense - indent rainbow - material icon theme - prettier & eslint - ES7+ React Snippets

Transform Your Space Today

AI-recommended products based on this video

Loading...
Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Red)

Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Red)

(126)
$65.99
FREE delivery Wed, Aug 20
400+ bought in past month
Loading...
Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Royal Blue)
Best Seller

Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Royal Blue)

(97)
$69.99
PrimeFREE delivery Sat, Jun 14
Loading...
Cordless Paint Sprayer for Dewalt 20V MAX Battery.Paint Spray Gun with Powerful Motor and 4 Copper Nozzle.650w Electric HVIP Sprayer for House Painting,Furniture, Wall, Door.(NOT Battery)

Cordless Paint Sprayer for Dewalt 20V MAX Battery.Paint Spray Gun with Powerful Motor and 4 Copper Nozzle.650w Electric HVIP Sprayer for House Painting,Furniture, Wall, Door.(NOT Battery)

(5)
$74.99
FREE delivery Wed, Aug 20
50+ bought in past month
Loading...
Handmade Custom Reusable Stencils, Personalized Text Stencil for Spray Painting & Sign Making, Durable Plastic, Metal & Wood Stencils, Multiple Material Options, Custom Stencil

Handmade Custom Reusable Stencils, Personalized Text Stencil for Spray Painting & Sign Making, Durable Plastic, Metal & Wood Stencils, Multiple Material Options, Custom Stencil

(0)
$11.99
$13.94 delivery Jul 2 - 22
Loading...
RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

RoboSeal Rechargeable Mason Jar Vacuum Sealer for Mason Jars Wide and Regular, One Touch Vacuum Sealer for Jars, 10 Lids Included, Digital Battery Indicator, As Seen on TV

(190)
$36.09
Prime
2K+ bought in past month
Loading...
Environet Hydroponic Growing Kit, Self-Watering Mason Jar Herb Garden Starter Kit Indoor, Windowsill Herb Garden, Grow Your Own Herbs from Organic Seeds (Basil)

Environet Hydroponic Growing Kit, Self-Watering Mason Jar Herb Garden Starter Kit Indoor, Windowsill Herb Garden, Grow Your Own Herbs from Organic Seeds (Basil)

(786)
$69.15$33.51
FREE delivery Jun 13 - 17
Loading...
SYCARON 200PCS Water Bottle Stickers for Kids, Waterproof Vinyl Stickers Laptop Decals Cute Sticker Packs Stickers for Girls Teens Adults (Animal Stickers)

SYCARON 200PCS Water Bottle Stickers for Kids, Waterproof Vinyl Stickers Laptop Decals Cute Sticker Packs Stickers for Girls Teens Adults (Animal Stickers)

(819)
$9.99
FREE delivery Sat, Jun 14 on your first order
600+ bought in past month
Loading...
YAMIOW 160pcs Cute Positive Words Stickers for Kids Teens Adults, VSCO Trendy Stickers for Girls, Inspirational Stickers for Water Bottle Laptop Scrapbooking, Waterproof Vinyl Stickers Pack

YAMIOW 160pcs Cute Positive Words Stickers for Kids Teens Adults, VSCO Trendy Stickers for Girls, Inspirational Stickers for Water Bottle Laptop Scrapbooking, Waterproof Vinyl Stickers Pack

(1,046)
$10.99
FREE delivery Sat, Jun 14 on your first order
50+ bought in past month
Loading...
Yuyul 100Pcs Harry Stickers, Vinyl Waterproof Cartoon Stickers for Skateboard, Laptop, Scrapbook, Luggage, Phone, Gift for Boys, Teens, Adults DIY Decor

Yuyul 100Pcs Harry Stickers, Vinyl Waterproof Cartoon Stickers for Skateboard, Laptop, Scrapbook, Luggage, Phone, Gift for Boys, Teens, Adults DIY Decor

(29)
$9.88
FREE delivery Sat, Jun 14 on your first order
Loading...
Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

Command Medium Picture Hanging Strips [Removable]: 12 Pairs (White)

(23,669)
$10.38
FREE delivery Mon, Sep 15 on your first order
5K+ bought in past month
Loading...
Generic Loose Fit Tops for Women Summer Cotton Linen Tshirt Tops Casual Loose Fit Trendy Tunic Short Sleeve Plus Size Blouses

Generic Loose Fit Tops for Women Summer Cotton Linen Tshirt Tops Casual Loose Fit Trendy Tunic Short Sleeve Plus Size Blouses

(19)
$2.99
$14.99 delivery Jun 25 - Jul 8
Loading...
Febreze Bathroom, Odor-Fighting, Plug In Alternative, Air Fresheners for Home and Bathroom, Kitchen & Closet, Linen & Sky Scent, 4 Count

Febreze Bathroom, Odor-Fighting, Plug In Alternative, Air Fresheners for Home and Bathroom, Kitchen & Closet, Linen & Sky Scent, 4 Count

(12,879)
$14.88
FREE delivery Sat, Jan 3 on your first order
2K+ bought in past month
Loading...
COOFANDY Men's Linen Shirts Short Sleeve Casual Shirts Button Down Shirt for Men Beach Summer Wedding Shirt

COOFANDY Men's Linen Shirts Short Sleeve Casual Shirts Button Down Shirt for Men Beach Summer Wedding Shirt

(9,067)
$32.29
FREE delivery Sun, Aug 10 on your first order
50+ bought in past month
Loading...
Gavliuu Men's Linen Shirts with Hidden Buttons, Casual Summer Beach Short Sleeve Shirt for Men

Gavliuu Men's Linen Shirts with Hidden Buttons, Casual Summer Beach Short Sleeve Shirt for Men

(78)
$16.99
FREE delivery Sun, Aug 10 on your first order
Loading...
2 Pack Outdoor Solar Firework Lights, 240 LED Solar Powered Hanging Lights Outdoor Waterproof Hanging Fairy Garden Lights Landscape Lights(Warm White)

2 Pack Outdoor Solar Firework Lights, 240 LED Solar Powered Hanging Lights Outdoor Waterproof Hanging Fairy Garden Lights Landscape Lights(Warm White)

(41)
$25.99
FREE delivery Sat, Jun 14 on your first order
300+ bought in past month
Loading...
Girls Gifts 8-12 Years Old, Diamond Art Toys for Girls 7-10 Kids Crafts for 5 6 7 8 9 10 Year Old Girls Birthday Present Age 5-11 Mosaic Kit for Boys Teen Art Supplies for Kids with Frame Home Decor

Girls Gifts 8-12 Years Old, Diamond Art Toys for Girls 7-10 Kids Crafts for 5 6 7 8 9 10 Year Old Girls Birthday Present Age 5-11 Mosaic Kit for Boys Teen Art Supplies for Kids with Frame Home Decor

(62)
$17.59
100+ bought in past month
Loading...
Paint Your Own Moon Lamp Kit, DIY 3D Moon Night Light with Space Figurines & Wooden Stand, Art Supplies Creativity Arts & Crafts Kit for Kids, Toys Girls Boy Birthday Easter Gift Ages 3 4 5 6 7 8 9 10 11 12+

Paint Your Own Moon Lamp Kit, DIY 3D Moon Night Light with Space Figurines & Wooden Stand, Art Supplies Creativity Arts & Crafts Kit for Kids, Toys Girls Boy Birthday Easter Gift Ages 3 4 5 6 7 8 9 10 11 12+

(2,309)
$19.99
FREE delivery Sat, Jun 14 on your first order
400+ bought in past month
Loading...
Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Red)

Paint Sprayer Electric Spray Gun: 700W Spray Paint Gun with 1200ml Container, 4 Nozzles & 3 Patterns, Adjustable Air Flow, Easy Cleaning for House Painting, Furniture, Fence, Walls, Door (Red)

(126)
$65.99
FREE delivery Wed, Aug 20
400+ bought in past month
Loading...
Koolmox Koolmox Canvas Grocery Bag, 6-Pack 22'' Large Bags with Reinforced Handles, 12 Oz Heavy Duty Reusable Washable Grocery Shopping Bags Plain Bags for Teacher Paint Embroidery Draw DIY Art Craft Totes

Koolmox Koolmox Canvas Grocery Bag, 6-Pack 22'' Large Bags with Reinforced Handles, 12 Oz Heavy Duty Reusable Washable Grocery Shopping Bags Plain Bags for Teacher Paint Embroidery Draw DIY Art Craft Totes

(144)
$39.99
PrimeFREE delivery Sat, Jun 14