An innovative application that connects people based on their musical preferences, drawing inspiration from Tinder.
- Users sign up or log in using their Spotify credentials.
- Users complete their profiles, including basic information (name, date of birth, brief description, gender preference, and profile picture).
- Users select and customize their top 4 favorite tracks from Spotify, retrieved using the Spotify API.
- Users are presented with potential matches based on their gender preference.
- Users see their matches.
- For mutual matches, they can view the email of the match.
We seek a skilled Node.js developer to create this API using the AdonisJS framework. The chosen database engine can be PostgreSQL or MySQL based on your expertise and recommendation.
-
User Registration/Login
- Implement OAuth2 authentication with Spotify to allow users to register or log in.
-
Logout Endpoint
- Provide a secure endpoint for users to log out of their accounts.
-
Profile Management
- Create endpoints for users to complete their profiles, including basic information and their preferred Spotify tracks.
-
Matching Endpoint
- Develop an endpoint to retrieve and match users based on their gender preference.
-
Spotify Integration
- Implement an endpoint to search for songs using the Spotify API.
-
Match History
- Develop an endpoint to list all matches, indicating whether the match is mutual. Include relevant user data for each match.
Upon user registration, it's crucial to save the user's Spotify preferences for future use, including:
- User's top 20 artists
- User's top 20 tracks
- Artists the user follows
- Framework: AdonisJS
- Database: MySQL
- Authentication: OAuth2 with Spotify
-
Install Dependencies
npm install
-
Configure Database Connection
- Set up the database connection details in your
.env
file.
- Set up the database connection details in your
-
Configure Spotify API
- Add your Spotify client_id and client_secret in your
.env
file.
- Add your Spotify client_id and client_secret in your
-
Run Migrations and Seed Data
node ace migration:run node ace db:seed
-
Start the Application
npm run dev
-
Access the API at
- For the Login API (http://localhost:3333/api/signin), open it in a browser as the request will be redirected to Spotify for authentication. This API won't work in Postman.
- All other APIs are provided in the Postman collection.