FireSpotify – Spotify Clone App Ionic 3

Overview

FireSpotify is a Spotify music app clone built using Ionic 3 Framework!

Firebase is used for the backend 

Angular 2 Template is used for the admin dashboard

Features

  • Music Player 
  • Swipe to change track
  • Firebase Realtime Database
  • Moods
  • Follow Artist
  • Like Songs
  • Custom Playlists
  • Popular Songs Albums and Singers based on user experiences
  • Search Songs Singers and Albums
  • Notification Music Control
  • Player Background Effect
  • Mini Player In Every Page Of The App
  • Shuffle Singer, Album or Playlist
  • Progress bar on top of mini player

Requirements

  • Cordova
  • Ionic 3
  • Firebase CLI
  • Android SDK
  • Mac OS & X Code for Ios app

Instructions

Application Installation

As This Application is based on Ionic 3, i assume you have a knowledge about Ionic Framework and Angular 4 as well as Cordova.
For Ionic installation please refer to https://ionicframework.com/docs

1. Preparing Firebase Database

  1. Go to https://console.firebase.google.com
  2. Add a project and name it
  3. Add app / Click on Web
  4. Copy the data inside var config= {copy inside this}
  5. Go to the ionic app root folder -> src -> app.module.ts
  6. Paste the copied data from firebase into export const firebaseConfig = { here }
  7. Save and close it

2. Installing Node Modules

  1. Open CMD/Terminal/Powershell
  2. Go to the root folder of the app
  3. Run command  “npm install”
  4. Run command “ionic lab”

3. Building Android and iOS app

  1. Follow the documentation from ionic website
  2. Install Android SDK (iOS is only possible on MacOS)
  3. Go to app’s root folder
  4. Run command “cordova platform add android”
  5. Run command “cordova build android”

Backend Installation

As This Backend is based on Angular 4, i assume you have a knowledge about Typescript and Angular 4 as well as NodeJs.
For NodeJs installation please refer to https://nodejs.org/

1. Preparing Firebase connection (firebase data is the same as the app)

  1. Go to the root folder of backend -> src -> app -> app.module.ts
  2. Paste the copied data from firebase into export const firebaseConfig = { here }
  3. Open CMD/Terminal/Powershell
  4. Run command “npm install -g firebase-tools” ###li/li###
  5. Run command “firebase init” as well as “firebase login”
  6. Follow the steps from firebase CLI
  7. Choose dist as the folder for hosting

2. Installing Node Modules and run the backend web app locally

  1. Go to root folder of backend using terminal or CMD
  2. Run command “npm install -g yarn”
  3. Run command “yarn” wait until it finish
  4. Run command “npm start” and open http://localhost:4200 in your browser

3. Uploading the backend

  1. Go to root folder of the backend
  2. Run command “npm run build:prod” and it will build it into folder “dist”
  3. You can upload dist folder to your own hosting or to firebase
  4. Run command “firebase deploy” wait until it finishes uploading
  5. It is ready to use the backend online using the link provided when upload finishes

4. Setting User To Access Backend

  1. Open firebase console
  2. Go to Authentication and copy  the user UID you want to set as Admin uZwK3y0kOt_U9VF0COFbeCnfQxTFsD_bCJvfQdNJ
  3. Go to Firebase Database, create user then user UID then role:2

Contact me if you need any help!

Related