apple-music-js

A music streaming service created from the ground up using ReactJS & Redux

  • 所有者: tvillarete/apple-music-js
  • 平台:
  • 许可证: MIT License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

og

Built by Tanner Villarete

Connect with me on LinkedIn! I'll be graduating soon ;)

How far can JavaScript take us?

Turns out, pretty dang far. This web app was my attempt at mimicking Apple's iOS music app, and I think I've come pretty close!

Check out a live demo here


screen shot 2018-08-12 at 9 49 19 am

screen shot 2018-08-12 at 9 49 27 am

I'm in my fourth year of college, and it's been super cool to see how much I've improved and continue to improve all aspects of programming.

Backend API

The API is hosted on a Raspberry Pi, and it's kept private (but still accessible if you try) so that it doesn't get overloaded. If you're interested in building your own backend to plug into this tool, here's what my database and endpoints look like:

Database

There are six required columns:

  • name: The name of the song
  • artist: The artist name
  • album: The album name
  • track: The index of the song relative to the album (To order songs in an album)
  • url: A URL to the audio file
  • artwork: A URL to the album artwork image
mysql> use music;

Database changed
mysql> desc tracks;
+------------+------------------+------+-----+---------+----------------+, Field, Type, Null, Key, Default, Extra, +------------+------------------+------+-----+---------+----------------+, id, int(10) unsigned, NO, PRI, NULL, auto_increment, created_at, timestamp, YES, NULL, updated_at, timestamp, YES, NULL, name, varchar(255), NO, NULL, artist, varchar(255), NO, NULL, album, varchar(255), NO, NULL, track, int(11), NO, NULL, url, varchar(255), NO, NULL, artwork, varchar(255), NO, NULL, +------------+------------------+------+-----+---------+----------------+
9 rows in set (0.05 sec)

API Endpoints

The backend is built with PHP using the Laravel ORM. I only needed a few API endpoints to get this working:

  • /albums - Returns a list of all album names with their corresponding artist
  • /album/{album} - Returns a list of songs from a specified album
  • /artists - Returns a list of all artists
  • /artist/{artist} - Returns a list of all albums from a specific artist

Feel free to reach out if you have questions!

主要指标

概览
名称与所有者tvillarete/apple-music-js
主编程语言JavaScript
编程语言HTML (语言数: 2)
平台
许可证MIT License
所有者活动
创建于2018-07-08 17:27:59
推送于2023-01-03 15:19:03
最后一次提交2021-09-02 19:57:51
发布数0
用户参与
星数1.8k
关注者数31
派生数195
提交数100
已启用问题?
问题数10
打开的问题数5
拉请求数29
打开的拉请求数9
关闭的拉请求数8
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?