

How far can JavaScript take us?
source link: https://www.tuicool.com/articles/hit/FrMbYrQ
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

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!
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 artist album track url artwork
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 /album/{album} /artists /artist/{artist}
Feel free to reach out if you have questions!
Recommend
-
10
Async interviews: my take thus far Apr 30, 2020 The point of the async interview series, in the end, was to...
-
12
you can take the derivative of a regular expression?! And it’s actually useful?! Paul Wankadia sent me an email yesterday about regular expressions and I thought it was so interesting I decided to write up...
-
6
The Challenge of Bluetooth Distance Estimation Estimating distance with Bluetooth has long been a source of befuddlement and controversy. Developers often have trouble making it work and there is debate about whether it works well...
-
3
Rails can only take you so far by Jason Swett, January 8, 2022 Applications tend to grow over time. In the beg...
-
12
Apple’s ‘Far out’ event will take place on September 7 August 25, 2022
-
5
How Far Can You Fly a Battery-Powered Jumbo Jet?The answer explains why electric cars are everywhere but electric aircraft are still a novelty....
-
8
Logan Paul: How far can YouTuber go as a WWE wrestler?Published19 hours ago
-
8
How Far Might Open Fiber Access Take Us? There is no question that the most expensive part of networking is the access piece. Move inward and you quickly reach a point where hundreds of thousands of customers ca...
-
9
How far can you get on Apple silicon without Rosetta?
-
5
How Far Can An EULA Go?
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK