Skip to content

Application to get artists' albums through Node and Spotify for a technical interview by Houlak.

Notifications You must be signed in to change notification settings

gastonkons/spotify-albums

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spotify Albums 🎵

Search for your favorite artists and find the best albums!

Getting started

Local Repository Setup

  1. Clone the Spotify Albums Repo

    SSH:

    git clone [email protected]:gaskons/spotify-albums.git

    HTTPS:

    git clone https://github.com/gaskons/spotify-albums.git
  2. Go to your spotify-albums directory

    cd spotify-albums
  3. Install dependencies

    npm install

    It will install the dependencies of both projects (app & api)

  4. Go to the .env file and set your database (mysql) & spotify credentials to localhost

    DB_DATABASE=spotify_albums
    DB_HOST=localhost
    DB_USER=root
    DB_PASS=root
    
    SPOTIFY_CLIENTID=
    SPOTIFY_SECRET=

    If you have another user or password to connect to mysql, replace root with your user and password.

    If you don't know how to get the credentials, feel free to contact me!

  5. Open the schema.sql file and run the script in your MySQL Workbench or your preferred workspace

    schema.sql

  6. Once all the steps are done, we are ready to start the server up! 🥳

Start the server 🚀

  1. We need to be in the spotify-albums directory

  2. Run the command in the terminal

npm run dev:api

This command will wake up the server

  1. Open a new terminal and run the following command:
npm run dev:app

This other command will raise the frontend

  1. By default, the application will start at the path
http://localhost:5173/
  1. Hope you enjoy it! 🤩

api 📕

Libraries used

  • cors
  • dotenv
  • express
  • mysql2
  • sequelize
  • request-ip

Built with

  • Node.js
  • Express
  • Typescript
  • Sequelize

app 📕

Libraries used

  • react
  • react-dom
  • react-loader-spinner

Built with

  • Vite
  • React

Author ✒️

  • Gastón Konstantinides - Development, test and documentation - gaskons

Expressions of Gratitude 🎁

  • Thanks to Houlak. for giving me the opportunity

About

Application to get artists' albums through Node and Spotify for a technical interview by Houlak.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published