Skip to content

lawsonhung/SpotifyCloneBackEnd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SpotifyClone Backend

Server for SpotifyClone
Frontend-shield

Hire Me!

Currently seeking Frontend Software Engineering roles
LinkedIn-shield

Getting Started

Prerequisites

SpotifyRequestToken

You need a Spotify Premium account for the project to work properly and request an access token. Grab the Spotify Client_ID and client secret from your dashboard. You need this to set the SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET in step 3 of Getting Started below.

Make sure you add the /auth/callback endpoint to the Redirect URIs in the Spotify dashboard. For example, assuming you're using PORT 3000, the URI you would add is http://127.0.0.1:3000/auth/callback

Installation

How to get a local copy up and running

  1. Clone the repo
git clone https://github.com/lawsonhung/SpotifyCloneBackEnd.git
  1. Install NPM packages
npm i
  1. Create a .env in the root directory and set the PORT and MONGO_URI. Your SPOTIFY_CLIENT_ID and SPOTIFY_CLIENT_SECRET goes here as well
touch .env
PORT=PORT_GOES_HERE
MONGO_URI=YOUR_MONGODB_URI_HERE
SPOTIFY_CLIENT_ID=YOUR_CLIENT_ID_HERE
SPOTIFY_CLIENT_SECRET=YOUR_SECRET_HERE
  1. Compile TypeScript
npx tsc
  1. Run the project dev command
npm run dev

Built With

MongoDB
Mongoose
Express
Node
Axios
TypeScript
TS-Node
Nodemon

About

Server for SpotifyClone

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors