Music streaming web application built using Next.js
- Clone this repository locally and open it with your preferred IDE.
- Run the Redis server by opening a terminal window and running the command:
redis-stack-server
.- Rename the env file to .env in the 'streaming-service-backend' folder.
- Open a new terminal window and change your directory to 'streaming-service-backend':
- Run
npm i
to install all packages. - Run the seed file to populate the database with data by running:
npm run seed
. - Start the server by running:
npm run dev
.
- Run
- Open another terminal window and change your directory to 'streaming-service-frontend':
- Rename the "env.local" file to ".env.local" in the 'streaming-service-backend' folder.
- Run
npm i
to install all packages. - Build the app by running:
npm run dev
.
- Go to your browser at http://localhost:3000 and log in or register as a new user.
Further Info about seed data
- You can configure the number of user and artist you want to seed in the big_seed.js file.
- change the
usersToBeSeeded
andartistsToBeSeeded
variables. albums and songs will be generated based on the number of artists.
- The seed data is generated using the faker library.
- Passwords for all users are set to "Password123$". Please get email from the databased as they are randomly generated
- use '/login/admin' to login as an admin.
- admin credentials are:
- email: [email protected]
- password: HanSolo@1234
- When you load huge data admin page might take a while to load.
- we are only using ~100 actual song files for the seed data. These are resued by all the songs seed data so when you play songs you might see the same song file being used multiple times.
- the song files are located in the 'streaming-service-backend/utils/songData' folder.
- Deployment links : frontend -> https://project554-ca5be6o55-tharuns-projects-078b2bbf.vercel.app/artist and backend -> https://streaming-service-backend.onrender.com