🎯 What you'll practice: Hosting a live Express server + MongoDB Atlas database on Railway.
1-B 2-B 3-B 4-B | 5 = start 6 = cors 7 = app.use(cors({origin:'https://your-app.vercel.app'})); 8 = create Atlas cluster, whitelist network access, push repo to GitHub, import on Railway, set env vars, connect frontend's API URL to the Railway URL 9 = Hardcoding secrets exposes them in source control (visible to anyone with repo access) and makes it impossible to use different values between local/staging/production without editing code | 10 = Most likely cause: Atlas's network access whitelist doesn't include Railway's IP range (only allows your local IP) — fix by setting network access to 0.0.0.0/0 (or Railway's specific egress IPs) in the Atlas dashboard.