MERN stack app for mood-based music discovery with Tinder-style swipes. Backend uses Express + MongoDB + YouTube Data API v3; frontend is React (Vite) with Framer Motion.
- Node.js 18+
- MongoDB (local or Atlas)
- YouTube Data API v3 API key
-
Copy
.env.exampletoserver/.envand fill inYOUTUBE_API_KEY,MONGODB_URI, andPORT(must match what Vite reads for dev — see.env.example). -
Install and run (from repo root):
npm install
npm run dev- API:
http://localhost:<PORT>(default5000in.env.example) - UI: URL printed by Vite (starts at
5173, may use next free port)
For production builds, set VITE_API_URL to your public API URL when building the client.