Loading repository data…
Loading repository data…
RaresRacsan / repository
This project is a simplified clone of Spotify, built using Node.js, Express, SQLite, and vanilla JavaScript. It provides basic functionalities such as user registration, login, and song playback. Users can like and dislike songs, and their liked songs will be displayed in a sidebar.
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-clone
Install the dependencies:
npm install
Create the SQLite database:
type NUL > db.sqlite
Ensure 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 start
Open 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: