Course home
FSWD · MERN STACK UNIT 5 / 5
5UNIT

FSWD · MERN Stack · The finale

Your app goes on the internet. Live.

You already own all four letters of MERN. This unit gives your server its formal vocabulary — REST — locks its order route behind JWT auth, surveys microservices, serverless and AWS, then connects both projects and deploys them to a real public URL.

M · MongoDB E · Express R · React N · Node → LIVE NO NEW LETTER THIS UNIT — IT TAKES THESE FOUR AND PUTS THEM ON THE PUBLIC INTERNET.
REST & JWTreal APIs, really protected
Serverless & AWSLambda, EC2, S3 & friends
Deploymentlocalhost → public URL
8Classroom sessions · 60 min each
2Labs · 120 min each
17Exam-style questions solved along the way

Your 10 sessions, in order

Four classes teach it.
Then one lab makes it real.

No new folder this unit — that's the point. poshtik-campus-react/ (Lab 7) and poshtik-campus-server/ (Lab 10) both continue exactly where you left them: Lab 11 makes them finally talk to each other, and Lab 12 puts them both on the public internet.

Round 1

Name it, protect it, connect it

41CLASS Web Services Architecture, SOAP vs REST

The vocabulary for what your server has already been doing since Unit 4. What a web service is, provider and consumer, SOAP at survey depth, and REST — the style your entire Express API has been using, finally named formally.

Your API, finally named 2 exam questions solved
SOON
42CLASS REST Principles & Route Design

Statelessness, resources as nouns (/dishes, not /getDishes), the /api/all and /api/:id patterns the exam asks in real Express code, idempotency — and your /menu?category= route rewritten as /menu/:category, both shown side by side.

Routes, done properly 2 exam questions solved
SOON
43CLASS Node.js REST API — Formalised

Your whole Unit-4 API relabelled through REST's own vocabulary, API versioning, consuming an API with fetch() — Class 20's old preview finally fully realised — and CORS: the exact browser wall Lab 11 must climb before the two projects can talk.

CORS, met before it bites
SOON
44CLASS JSON Web Tokens for Authentication

Right now anyone can POST /order as anyone. What a JWT is, its header-payload-signature anatomy decoded on a real token, a /login route issuing one, and Class 36's middleware stub grown into real auth protecting the order route.

The order route locks Exam question solved
SOON
LABELEVEN The Two Projects Finally Connect

No new fork — both folders, two terminals. The React Menu page fetches the real /menu from MongoDB instead of its local array, and the order form calls the JWT-protected POST /order, landing on a real OrderConfirmed screen. Four REST-API exam questions worked in full.

React ↔ server, for real 4 exam questions solved
SOON
Round 2

Architecture, the cloud, and going live

45CLASS Microservices Architecture

Your server reviewed honestly as one monolith, what a microservice is, the trade-offs table (not "microservices are always better"), and the thought experiment: how Poshtik Campus could split into menu, orders and auth services — conceptually, not rebuilt.

Monolith vs micro, honestly Exam question solved
SOON
46CLASS Serverless Computing, AWS Overview & Lambda

Why pay for a server nobody's ordering from at 4 AM? What "serverless" honestly means, the AWS survey begins, Lambda as code that runs only when triggered — including a conceptual order-confirmation-notification Lambda tied to your own flow.

The cloud, demystified 3 exam questions solved
SOON
47CLASS AWS Services, Lambda vs EC2 & Use-Cases

EC2 as the always-on contrast to Lambda, five AWS services surveyed — S3, Lambda, EC2, RDS, API Gateway — where your dish photos could live on S3, the Free Tier's honest limits, and the AWS CLI installed for real. The unit's PYQ-densest class.

The service map 4 exam questions solved
SOON
48CLASS Web Application Deployment in the Cloud

localhost to public URL. Environment variables and why secrets never get committed, deployment proven first at room scale (a classmate's phone opening your LAN IP), then both projects' real cloud walkthroughs, rollback via the git habit you've had since Lab 1, and CI/CD basics.

Deployment, end to end
SOON
LABTWELVE The Capstone — Deploy, Prove, Upgrade

The largest lab in the course, deliberately. Both projects deployed to real hosting, then the proof: a real order placed on the live site, traced login → JWT → MongoDB → confirmation screen, entirely on the public internet. Then one real feature upgrade, redeployed — and the whole-course recap.

Live, and proven live Whole-course recap included
SOON

The running project · no new fork — the payoff

Same campus. Now the whole world can order.

Poshtik Campus పౌష్టిక్ క్యాంపస్ · both projects continue — and go live

"Unit 5 does not add a new letter — it takes these four and puts them on the public internet." That's the line the MERN payoff page closes with, and it's this unit's whole shape. No new folder, no new fork: poshtik-campus-react/ and poshtik-campus-server/ each continue exactly where their last lab left them.

The continuity that started with one HTML file in Lab 1 completes its arc here. Lab 11 rewires the React menu to fetch the real database-backed /menu and sends the order form through the JWT-protected POST /order to a genuine OrderConfirmed screen. Lab 12 deploys both halves and proves the same flow on a public URL — the order-confirmation journey, live, traced hop by hop.

What ships in your project this unit
  • A /login route issuing JWTs, and auth middleware locking POST /order (Class 44)
  • CORS configured so poshtik-campus-react/ can legally call poshtik-campus-server/ (Lab 11)
  • The OrderConfirmed component rendering the server's real confirmation response (Lab 11)
  • Both projects deployed — backend with environment variables, frontend from npm run build (Lab 12)
  • The git habit from Lab 1 pays its final dividend — one real feature upgrade, committed, pushed, redeployed
the order flow, live on the public internet · Lab 12's proof
poshtik-campus-react · the deployed app, on a real URL login → JWT issued POST /order · Authorization: Bearer <token> · validated saved to the real orders collection MongoDB · the order survives the restart, forever 201 · confirmation response returns OrderConfirmed — rendered from the server's real reply ✓
Press play — this is the exact journey Lab 12 proves on the public internet.

This exact trace — every hop watched in the Network tab, on the live site — is Lab 12's dedicated proof page, and the course's finish line.