How jonasschmedtmann/complete-node-bootcamp works
Project type and purpose
• This repo is a “course‐materials” monorepo for a Complete Node.js/Express/MongoDB bootcamp.
• It contains multiple small tutorial projects (Node Farm, Async JS demos, Event‐loop demos) and one full‐blown production‐style app (“Natours”).
a. Node Farm (a file-based templating HTTP server demo)
b. Natours (a full-stack Express/MongoDB tour-booking application with Pug views, REST API, auth, payments)
File structure
• Top‐level folders:
• 1-node-farm/… – tutorial Node HTTP server reading JSON + templates + text files
• 2-how-node-works/… – event-loop, streams, modules demos
• 3-asynchronous-JS/… – callbacks/promises/fetch demo
• 4-natours/… – starter + “after‐section” folders building up an MVC Express/MongoDB app
• Within “4-natours/after-section-14” (final version) you see:
• config.env, server.js, app.js
• controllers/ – business logic (tour/user/auth/booking/views)
• routes/ – Express routers mapping URL paths to controllers
• models/ – Mongoose schemas for tours/users/bookings/reviews
• utils/ – shared utilities (error handling, email, API features)
• dev-data/ – JSON fixtures + templates for seeding or view rendering
• public/ – static assets (CSS, JS bundles, images)
• views/ – Pug templates (page layouts, partials)
README for additional insights
• The main “Natours” app exposes:
• A website at / (views rendered via Pug + client JS for mapbox, auth, alerts)
• A REST API under /api (tours, users, reviews, bookings)
• Integrations: MongoDB Atlas, Mapbox, Stripe (payments), NodeMailer (email)