Collaborative Music Playlist Platform
Social/community layer πάνω στο Spotify. Δημιούργησε collaborative playlists, ψήφισε tracks, ανακάλυψε μουσική by vibe, και άκουσε τις playlists στο Spotify.
collabify/
├── server/ ← Backend (Node.js + Express + PostgreSQL)
│ ├── src/
│ │ ├── index.js
│ │ └── routes/
│ │ ├── auth.js (Spotify OAuth)
│ │ ├── dna.js (DNA, Hybrid Matching Score System)
│ │ ├── friends.js (Independent Friends System, Request, Accept, Decline)
│ │ ├── playlists.js (Trending & Discover Feed, CRUD, Voting, Track Handler, Invite & Copy Link System, Save Playlist)
│ │ ├── spotify.js (Spotify API proxy)
│ │ └── users.js (User Search, Edit Profile)
│ ├── prisma/
│ │ └── schema.prisma
│ └── .env
│
├── client/ ← Mobile App (React Native + Expo)
│ ├── App.js
│ ├── api.js
│ ├── index.js
│ ├── theme.js
│ ├── screens/
│ │ ├── BattlesScreen.jsx
│ │ ├── DNAScreen.jsx
│ │ ├── EditProfileScreen.jsx
│ │ ├── FriendProfileScreen.jsx
│ │ ├── HomeFeed.jsx
│ │ ├── LoginMobile.jsx
│ │ ├── PlaylistsScreen.jsx
│ │ ├── PlaylistViewScreen.jsx
│ │ ├── ProfileScreen.jsx
│ │ └── WrapScreen.jsx
│ └── components/
│ └── CollaboratorsSection.jsx
│
└── README.md
- Node.js v22+
- PostgreSQL (running locally)
- Spotify Developer Account → https://developer.spotify.com/dashboard
- ngrok account (free) → https://ngrok.com
- Expo Go app στο κινητό (App Store / Play Store)
cd server
npm installΔημιούργησε server/.env:
DATABASE_URL="postgresql://postgres:YOUR_PASSWORD@localhost:5432/collabify"
SPOTIFY_CLIENT_ID="your_client_id"
SPOTIFY_CLIENT_SECRET="your_client_secret"
SPOTIFY_REDIRECT_URI="https://your-domain.ngrok-free.app/auth/callback"
JWT_SECRET="random_long_string"
CLIENT_URL="http://127.0.0.1:5173"
Δημιούργησε database & tables:
npx prisma migrate dev --name initcd client
npm installΆλλαξε τα URLs:
api.js→API_URL(τοπικό IP ή ngrok)screens/LoginMobile.jsx→NGROK_URL(ngrok URL)
3 terminals:
# Terminal 1 — Server
cd server
node src/index.js
# Terminal 2 — ngrok (για Spotify OAuth)
ngrok http 3001 --domain=your-domain.ngrok-free.app
# Terminal 3 — Mobile app
cd client
npx expo startScan QR code με Expo Go στο κινητό.
# Terminal 3 αντί για expo start:
npx expo start --tunnel- Πήγαινε στο https://developer.spotify.com/dashboard
- Δημιούργησε app ή χρησιμοποίησε υπάρχον
- Settings → Redirect URIs → πρόσθεσε:
https://your-domain.ngrok-free.app/auth/callback - Settings → User Management → πρόσθεσε τα Spotify emails των testers
| Layer | Technology |
|---|---|
| Mobile | React Native, Expo |
| Backend | Node.js, Express |
| Database | PostgreSQL, Prisma ORM |
| Auth | Spotify OAuth 2.0, JWT |
| External API | Spotify Web API |
- ✅ Spotify OAuth login
- ✅ Create/edit collaborative playlists
- ✅ Vibe/mood tags & search
- ✅ Spotify search & add tracks
- ✅ Upvote/downvote tracks
- ✅ Role-based permissions (Creator/Collaborator/Viewer)
- ✅ Invite collaborators
- ✅ Top tracks & recently played
- ✅ User profile with stats
- ✅ Musical DNA
- 🔜 Playlist Battles
- 🔜 Wraps & Stats
Collabify features a unique matchmaking system to connect users based on their musical identity.
The app assigns you a specific music personality (e.g., Explorer, Dreamer, Rebel, Zen Master) based on your listening habits.
Upcoming Refactor: Currently, personalities rely on Spotify genres, which often return missing data and default users to the "Explorer" personality. In a future update, DNA personalities will exclusively use Collabify data. Your personality will be determined by the Vibes of the playlists you create or collaborate on (e.g., heavily using "chill" tags will make you a Zen Master).
Our hybrid algorithm scans all public profiles—excluding current friends—to find your ultimate music match. It doesn't just rely on Spotify; it heavily rewards your activity within Collabify.
The Match Score System:
- +1 Point: For every common Spotify Genre.
- +2 Points: For every common Spotify Artist.
- +3 Points (Bonus): For every common Collabify Vibe extracted from your created or collaborated playlists.
The user with the highest total score becomes your Soulmate. The results screen breaks down the exact Vibes, artists, and genres you both share.