/Marioplex-Backend

Software Engineering Project(Spotify)-the backend team repo.

Primary LanguageHTMLISC LicenseISC

🎧 Marioplex Spotify clone back-end

Marioplex node js server is a clone to spotify music streaming server, which tries to mimic the spotify server capability in handling different requests, and integrating external APIs, databases and much more features.

Marioplex back end server features:

  • 🔑 Authentication and authorization
  • 🔏 OAuth2 facebook authentication and authorization
  • 🔓 Forget your password no problem you can reset it by just a click
  • 📁 Mongodb as a service
  • ⚙️ Integrating with google API
  • 🎵 Media straming all day and night with different qualities to choose from
  • ⏹️ Encrypted media to keep it safe from illegal downloads
  • 📧 Mailing service, get confirmation mail whenever you
    • Sign up
    • Froget you password
    • Promoted to be premium user
    • Updated your profile info
  • 💰 Privileges for our awesome premium users
  • 🎼 Feel bored just create your own playlist with only the best songs you like
  • 💭 reorder your songs in your playlist however you like
  • 🔮 Like randomness then we got your back with our great shuffle feature to feel the thrill of listening to the unknown
  • 🔄 The song is on fire then let it on repeat till you hate it
  • 🎨 Dreamed of being an artist then be one and upload your songs and watch as users fall in love with them
  • 🌍 Follow your favourite users and artists and be notified whenever the upload something or create albums and playlists
  • 📡 Get notifications whenever
    • some user viewed you profile (Facebook can learn something or two from us)
    • artist you follow uploaded a new album/track
    • some user followed you
    • some user followed your playlist, and get a sense of how many people have the same musical taste as you
  • 🔗 Customize every detail about your profile
  • 🔎 Search for your beloved track/artist/user/albums/playlist by using our fuzzy search engine and get the top results and best match possible
  • 😔 Deleted a playlist by mistake ? Don't worry my child you can always recover it from our deleted playlist
  • 🖥️ Your homepage is specially customized for you and your taste with a spoon of the most populat tracks/artists in your area
  • 🍃 Your recently played songs are always stored so you will never miss them
  • 🎶 Tracks are ordered based on different categories to always find the best category for you
  • 📈 Statistics for uploaded songs and albums. number of listeners and likes per day, month, and year. also we didn't forget to add our beloved artist statistics which include number of followers per day, month and year
  • 💔 you can always delete your account when you get bored or spammed by our emails, but please don't we will miss you

intro

Best of all, It is totally free and open-sourced

want to try it yourself

run for developers

first install the devDependencies and dependencies by running

npm install

then set node enviroment to be running in development , if you are on linux run

export NODE_ENV=development

if you are on windows run

set NODE_ENV=development

then run the nodeJS seerver

node server.js

run for production

first install only the dependecies by running

npm install --only=prod

then set node enviroment to be running in production , if you are on linux run

export NODE_ENV=production

if you are on windows run

set NODE_ENV=production

then run the nodeJS seerver

node server.js

environmental variables

Be sure to add your information in .env file

generate seeds

first install node-mongo-seeds globally by running

npm install -g node-mongo-seeds

then generate the seeds on the default database by running

seed

migrations

install migrate-mongoose globally

npm install migrate-mongoose -g

to run all migrations run

migrate up

to run specific migration run

migrate up [name of migration to run]

to get more info about migrate-mongoose run

migrate -h