Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

node.js - How to decide the project?

I have recently learned MERN stack as I have to make my college project. I have decided to make an online music player and deploy it . I have been working on it for 15 days and have decided to add functionalities like upload a song , create playlists , custom player to play songs , search for songs , etc . I am in doubt if I have taken some heavy project and whether I would be able to complete it in one month or not . Please someone suggest what can be done as I am very new to it .


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

It just depend on you, on your capability, how many times you will pass on it, etc...

I just suggest you to be organized, do you functionality one by one and not all in same time, starting by those which will be used by the others.

Try to list all the feature you want to do, estimate the time of each (multiply by 1.33 :D ), and choose which one you can do in the time you have.

In addition try to use a versioning system, or do regular save at each step of your project in order to be able to discard a buggy feature / revert some bad code

For a uni project, it just important to have a 100% working version at each time

=========================

To play in your frontend a remote audio file you can either, use the Audio API

audioObj = new Audio(url);

In order to know when enough data of your audio file has been loaded, use:

myAudioElement.addEventListener("canplaythrough", event => {
  /* the audio is now playable; play it if permissions allow */
  myAudioElement.play();
});

audioObj = new Audio("https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3");
document.body.append(audioObj)

audioObj.addEventListener("canplaythrough", function(event){
  /* the audio is now playable; play it if permissions allow */

   audioObj.play()
});

// display controls
audioObj.controls = true;

  

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...