Search for your favorite artists and find the best albums!
-
Clone the Spotify Albums Repo
SSH:
git clone [email protected]:gaskons/spotify-albums.git
HTTPS:
git clone https://github.com/gaskons/spotify-albums.git
-
Go to your spotify-albums directory
cd spotify-albums
-
Install dependencies
npm install
It will install the dependencies of both projects (app & api)
-
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
, replaceroot
with your user and password.If you don't know how to get the credentials, feel free to contact me!
-
Open the schema.sql file and run the script in your MySQL Workbench or your preferred workspace
-
Once all the steps are done, we are ready to start the server up! 🥳
-
We need to be in the spotify-albums directory
-
Run the command in the terminal
npm run dev:api
This command will wake up the server
- Open a new terminal and run the following command:
npm run dev:app
This other command will raise the frontend
- By default, the application will start at the path
http://localhost:5173/
- Hope you enjoy it! 🤩
- cors
- dotenv
- express
- mysql2
- sequelize
- request-ip
- Node.js
- Express
- Typescript
- Sequelize
- react
- react-dom
- react-loader-spinner
- Vite
- React
- Gastón Konstantinides - Development, test and documentation - gaskons
- Thanks to Houlak. for giving me the opportunity