Prerequisites


1. Clone the repositories

\\\bash git clone <https://github.com/SathvikaSingoti/melodia-client> git clone <https://github.com/SathvikaSingoti/melodia-server> \\\


2. Backend setup

\\\bash cd melodia-server npm install \\\

Create a .env file in the server root:

\\\ PORT=5000 MONGO_URI=your_mongodb_atlas_connection_string JWT_SECRET=your_jwt_secret_key GEMINI_API_KEY=your_gemini_api_key JAMENDO_CLIENT_ID=your_jamendo_client_id GOOGLE_CLIENT_ID=your_google_oauth_client_id GOOGLE_CLIENT_SECRET=your_google_oauth_client_secret \\\

Seed the database with songs:

\\\bash node scripts/seedJamendo.js \\\

Start the server:

\\\bash node index.js \\\

Server runs at: http://localhost:5000