music-player

所属分类:数据结构
开发工具:TypeScript
文件大小:0KB
下载次数:0
上传日期:2023-06-11 17:58:06
上 传 者sh-1993
说明:  作为大学项目展示各种数据结构的音乐播放器。
(A music player showcasing various data structures as a university project.)

文件列表:
backend/ (0, 2023-10-11)
backend/package-lock.json (152795, 2023-10-11)
backend/package.json (897, 2023-10-11)
backend/public/ (0, 2023-10-11)
backend/public/static/ (0, 2023-10-11)
backend/public/static/fonts/ (0, 2023-10-11)
backend/public/static/fonts/Montserrat-Bold.ttf (198072, 2023-10-11)
backend/public/static/fonts/Montserrat-Bold.woff (114884, 2023-10-11)
backend/public/static/fonts/Montserrat-BoldItalic.ttf (202492, 2023-10-11)
backend/public/static/fonts/Montserrat-Medium.ttf (198104, 2023-10-11)
backend/public/static/fonts/Montserrat-MediumItalic.ttf (202492, 2023-10-11)
backend/public/static/fonts/Montserrat-Regular.ttf (197976, 2023-10-11)
backend/public/static/fonts/Montserrat-SemiBold.ttf (198204, 2023-10-11)
backend/public/static/fonts/Montserrat-SemiBoldItalic.ttf (202660, 2023-10-11)
backend/public/vite.svg (1497, 2023-10-11)
backend/src/ (0, 2023-10-11)
backend/src/api/ (0, 2023-10-11)
backend/src/api/songs.ts (1524, 2023-10-11)
backend/src/index.html (787, 2023-10-11)
backend/src/server/ (0, 2023-10-11)
backend/src/server/server.ts (894, 2023-10-11)
backend/tsconfig.json (633, 2023-10-11)
frontend/ (0, 2023-10-11)
frontend/.eslintrc.cjs (421, 2023-10-11)
frontend/index.html (787, 2023-10-11)
frontend/lib/ (0, 2023-10-11)
frontend/lib/utils.ts (169, 2023-10-11)
frontend/package-lock.json (241989, 2023-10-11)
frontend/package.json (1944, 2023-10-11)
frontend/postcss.config.js (80, 2023-10-11)
frontend/public/ (0, 2023-10-11)
frontend/public/static/ (0, 2023-10-11)
frontend/public/static/fonts/ (0, 2023-10-11)
frontend/public/static/fonts/Montserrat-Bold.ttf (198072, 2023-10-11)
frontend/public/static/fonts/Montserrat-Bold.woff (114884, 2023-10-11)
frontend/public/static/fonts/Montserrat-BoldItalic.ttf (202492, 2023-10-11)
frontend/public/static/fonts/Montserrat-Medium.ttf (198104, 2023-10-11)
frontend/public/static/fonts/Montserrat-MediumItalic.ttf (202492, 2023-10-11)
... ...

# Music Player An open source music player showcasing various data structures as a university project made with react and typescript. ## How to run it locally For development setup first clone the repo in your local machine, then inside folders "frontend", "backend" and "shared" each run ```npm install``` command. I'm using [concurrently](https://www.npmjs.com/package/concurrently) for the development stage which is required to run both server at a time so run ```npm install concurrently -g``` in a terminal window. This is an **offline music player** so you have to manually put your musics on the server for the app to work(Just like other offline music players). To do this just create a folder like this ```backend/public/music``` and another folder named "covers" to save our covers' picture, then copy paste your musics in the "music" folder. Now run two seperate terminal one in "backend" and one in "frontend". Run ```npm run dev``` on each and you should be good to go. Default port for server is 5000 and for client 5173. If these ports are used by other apllication(s), change the ports manually. For server go to ```backend/src/server/server.ts``` at line 26 change the ```PORT = 5000``` value. For the client side, go to ```frontend/vite.config.js``` you can change the port as followed: ``` export default defineConfig({ plugins: [react()], // other configs... server: { port: yourDesiredPort, }, // other configs... }); ``` ## Features You can create playlist, add songs to a queue, search the library and track your recenty played songs. Shout out to [Amirali Nrp](https://github.com/Amirali-Nrp) for pointing at some bugs. Feel free to inform me if you found any bugs.

近期下载者

相关文件


收藏者