Spotify Clone built on NextJS for the client and server side. And I've used Postgresql and Prisma ORM for the database. For the style, i used ChakraUI to build the components.
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 =
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
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
Pull requests are welcome, you can simply create an issue and contributing the app.