Spotify Clone
Spotify clone made with NextJS on both the client and server sides. For the database, I utilized Postgresql and Prisma ORM. I used ChakraUI to create the components for the style.
Live Demo
⚙️
Setup First of all, you should have the Postgresql database. If you don't have one running locally then you can use Heroku create the Postgresql database.
- Start with cloning this repo.
git clone https://github.com/mithatercan/nextjs-spotify-clone.git
- You should install the dependencies.
npm install
#or
npm install --force
- You should create the
.env
file to set the JWT secret and database URL variables.
touch .env
- The .env file should look like this.
DATABASE_URL=
SHADOW_DATABASE_URL=
JWT_SECRET =
Prisma ORM
You must have the prisma orm downloaded on your local machine. To download the prisma, check the guide here.
- Then you should run migrate the schemas to database
npx prisma migrate deploy
- And finally you should seed the data.
npx prisma db seed
Final Step
After all these setup above. The app is ready to run.
npm run dev
Default port is 3000. App will be running at localhost:3000
🙏
Contribution Pull requests are welcome, you can simply create an issue and contributing the app.