Git Product home page Git Product logo

boumboum-back's Introduction

Music Match API with AdonisJS

An innovative application that connects people based on their musical preferences, drawing inspiration from Tinder.

User Flow

User Registration/Login

  • Users sign up or log in using their Spotify credentials.

Profile Creation

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

Matchmaking

  • Users are presented with potential matches based on their gender preference.

Interaction

  • Users see their matches.
  • For mutual matches, they can view the email of the match.

API Requirements

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.

Required Endpoints

  1. User Registration/Login

    • Implement OAuth2 authentication with Spotify to allow users to register or log in.
  2. Logout Endpoint

    • Provide a secure endpoint for users to log out of their accounts.
  3. Profile Management

    • Create endpoints for users to complete their profiles, including basic information and their preferred Spotify tracks.
  4. Matching Endpoint

    • Develop an endpoint to retrieve and match users based on their gender preference.
  5. Spotify Integration

    • Implement an endpoint to search for songs using the Spotify API.
  6. Match History

    • Develop an endpoint to list all matches, indicating whether the match is mutual. Include relevant user data for each match.

Additional Spotify Data

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

Technical Details

  • Framework: AdonisJS
  • Database: MySQL
  • Authentication: OAuth2 with Spotify

Getting Started

  1. Install Dependencies

    npm install
  2. Configure Database Connection

    • Set up the database connection details in your .env file.
  3. Configure Spotify API

    • Add your Spotify client_id and client_secret in your .env file.
  4. Run Migrations and Seed Data

    node ace migration:run
    node ace db:seed
  5. Start the Application

    npm run dev
  6. Access the API at

API Documentation

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

boumboum-back's People

Contributors

nicolasbalao avatar estxbxn avatar romainlanz avatar misterazix avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.