App, API aur Database — teeno ek repo mein, aur connected ✅
Episode 2 mein hum PlanIt ka poora project setup karte hain: React Native app, Node.js + TypeScript + Express server, aur PostgreSQL — aur ek GET /health endpoint jo prove karta hai ki database connected hai.
Stack: React Native · TypeScript · Node.js · Express · PostgreSQL
✅ Is episode mein:
– Monorepo folder structure (apps/PlanItMobile, server, docs)
– package.json scripts + TypeScript config (tsconfig)
– .env aur DATABASE_URL setup
– Express server with GET /health
– PostgreSQL role, database aur connection (psql)
– Real errors aur unka fix — “already exists”, syntax errors
– Proof: 200 OK → “database”: “connected”
⏱ Chapters
0: 00 Intro
0: 03 Episode 02 — goal & checklist
0: 58 Project folder structure
2: 28 .gitignore
3: 43 Environment variables
4: 24 Offline-first architecture
6: 48 package.json & scripts
7: 38 TypeScript config
8: 53 .env & DATABASE_URL
10: 18 Express server & /health
13: 17 Running the API
13: 57 Health check: database connected
14: 18 PostgreSQL setup with psql
14: 58 Today’s milestone
15: 31 Done today & what’s next
17: 41 Next: Episode 03
⏮ Episode 1 (What are we building?): https://youtu.be/nGkV0NkR7pM
▶ Full playlist: https://www.youtube.com/playlist?list=PLR-dywn2IeZ8
💻 Code & notes: https://github.com/harryharihar/harihar-code-studio/tree/harihar-code-studio/offline_first
⏭ Next — Episode 03: Architecture & data model (layers, schema, sync metadata)
🔔 Subscribe to Harihar Code Studio — real apps, production-level engineering, in Hinglish.
#ReactNative #NodeJS #PostgreSQL