Music sharing and Streaming web application
This is a full-stack web application built with the MERN (MongoDB, Express, React, Node.js) stack that allows users to share and stream their favorite audio files. Users can create playlists, upload audio files, and explore other users' collections.
- User authentication and authorization using JWT tokens.
- User profile page to manage uploaded audio files and playlists.
- Audio file upload with support for multiple file formats.
- Playlist creation and management.
- Audio streaming with player controls (play, pause, skip, etc.).
- Responsive design for optimal viewing on any device.
To run the application locally, you'll need to have Node.js and MongoDB installed on your machine. Once you've cloned the repository, navigate to the project directory in your terminal and run the following commands:
For frontend
cd client
npm install
For backend
cd server
npm install
This will install the required dependencies for both the client and server applications.
Next, create a .env file in the server directory with the following environment variables:
MONGODB_URI=<your-mongodb-uri>
JWT_SECRET=<your-jwt-secret>
Replace <your-mongodb-uri>
with the connection string for your MongoDB instance, and <your-jwt-secret>
with a secret string of your choice.
Finally, start the client and server applications with the following commands:
npm run dev
server
cd server
node server.js || nodemon start
The client application will be available at http://localhost:5173, and the server will be running on http://localhost:1337.