MelodyServer is a backend server for a music application, built to handle user authentication and user interactions, music streaming, playlists, and more. It features a RESTful API for seamless integration, efficient data handling, and scalability to support rich music experiences.
- User Authentication: Sign up, login, and secure access with password hashing.
- Search: Search music by title, artist, genre, and more.
- Music Streaming: Stream audio files with efficient data handling.
- Playlist Management: Create, update, and delete playlists.
- Scalable Design: Ready for high-traffic applications with optimized performance.
- Node.js: JavaScript runtime for building the server.
- Express.js: Web framework for creating the RESTful API.
- Bcrypt: Library for hashing user passwords securely.
- PostgreSQL: Relational database for storing user data and music content.
- pg: Node.js library for interacting with PostgreSQL.
git clone https://github.com/CyberKnight4269/MelodyServer.git
cd MelodyServer
npm install
Create a .env file in the root directory with the following variables:
DB_USER= your_db_user
DB_HOST= localhost
DB_NAME= 5432
DB_PASS= your_db_password
DB_PORT= 5432
npm run dev
The server will start on http://localhost:3000.
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Make your changes.
- Commit your changes (
git commit -m 'Add new feature'). - Push to your fork (
git push origin feature-name). - Open a Pull Request.
For questions or feedback, reach out to me at kanaujiadivyansh@gmail.com