Spotify Clone
1.0.0
This project is a simple Spotify clone built using Node.js, Express, SQLite, and vanilla JavaScript. It allows users to register, log in, and play songs. Users can like and dislike songs, and the liked songs will be displayed in a sidebar.
Clone the repository:
git clone https://github.com/RaresRacsan/Spotify-Clone.git
cd spotify-cloneInstall the dependencies:
npm installCreate the SQLite database:
type NUL > db.sqliteEnsure you have the following directory structure:
project-root/
├── index.js
├── package.json
├── db.sqlite
├── public/
│ ├── js/
│ │ └── main.js
│ ├── songs/
│ │ ├── funtime-juicewrld.mp3
│ │ ├── googleme-cochise.mp3
│ │ ├── mo-travisscott.mp3
│ │ ├── timeless-playboicarti.mp3
│ │ └── tobey-eminem.mp3
│ └── styles/
│ ├── main.css
│ ├── login.css
│ └── register.css
└── views/
├── login.html
├── register.html
└── main.html
Start the server:
npm startOpen your web browser and navigate to:
http://localhost:3000
index.js: The main server file that sets up the Express server and routes.package.json: Contains the project dependencies and scripts.db.sqlite: The SQLite database file.public/js/main.js: Contains the client-side JavaScript for handling song playback and like/dislike functionality.public/songs/: Directory containing the MP3 files.public/styles/: Directory containing the CSS files.views/: Directory containing the HTML files.I welcome contributions to this project. If you would like to contribute, please follow these steps: