SekmSet / EXPRESS-SPOTILIKE

Master 1 IL create an API using NODEJS and Express

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🎧 API SPOTILIKE

Master 1 - IL

  • Sharon
  • Priscilla

Create a custom API like Spotify


NodeJS x Express x Angular

πŸ’š Spotify API

Spotify for developer

  • Create an account or login to your account
  • Access to your Dashboard and create a project
  • Go to your setting project and get your client secret and client id a project, you will need into your .env

Spotify API access to dashboard Spotify API create project Spotify API create project Spotify API access to the setting project Spotify API get your client ID and SERVER

🧰 Configuration

Server

Copy / Paste .env.example and rename it into .env

Set your variables

Database

Create your database and run the script to generate your database in SQL console server/data/db/dump.sql

πŸš€ Launch Spotilike Server

In a new terminal

cd server
npm i # Install packages
npm run start # Running on port 3000

πŸš€ Launch Spotilike Client

In a new terminal

cd frontend/spotilike-app
npm i # Install packages
ng serve # Running on port 4200

πŸ’Ύ SQL diagram

DB diagram

Available API routes

GET

  • Search (album, artist, track)
  • Album
    • /:id
    • /:id/tracks
  • Artist
    • /:id
    • /:id/tracks
  • Genre
  • Tracks
    • /:id

POST

  • Create account
  • Login
  • Spotify
    • Generate token

PUT

  • Update account

DELETE

  • Delete Account

About

Master 1 IL create an API using NODEJS and Express


Languages

Language:TypeScript 37.8%Language:JavaScript 34.7%Language:SCSS 14.4%Language:HTML 13.1%