Skip to content
TZANTOUPublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

25 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collabify 🎵

Collaborative Music Playlist Platform

Social/community layer πάνω στο Spotify. Δημιούργησε collaborative playlists, ψήφισε tracks, ανακάλυψε μουσική by vibe, και άκουσε τις playlists στο Spotify.


Project Structure

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

Prerequisites


Server Setup

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 init

Client Setup

cd client
npm install

Άλλαξε τα URLs:

  • api.js → API_URL (τοπικό IP ή ngrok)
  • screens/LoginMobile.jsx → NGROK_URL (ngrok URL)

Running

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 start

Scan QR code με Expo Go στο κινητό.

Για testing εκτός WiFi:

# Terminal 3 αντί για expo start:
npx expo start --tunnel

Spotify Dashboard Setup

  1. Πήγαινε στο https://developer.spotify.com/dashboard
  2. Δημιούργησε app ή χρησιμοποίησε υπάρχον
  3. Settings → Redirect URIs → πρόσθεσε: https://your-domain.ngrok-free.app/auth/callback
  4. Settings → User Management → πρόσθεσε τα Spotify emails των testers

Tech Stack

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

Features (MVP)

  • ✅ 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

Musical DNA & Soulmate Match

Collabify features a unique matchmaking system to connect users based on their musical identity.

🧬 Musical DNA (Your 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).

🎧 Finding Your Soulmate (Hybrid Matching)

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.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages