Skip to content

gordun209-hub/nextjs-spotify-clone

 
 

Repository files navigation

Spotify Clone

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.

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.

License

MIT

About

Fullstack Spotify clone app using NextJS and many other libraries.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.6%
  • JavaScript 0.4%