This repository contains a clone of the popular music service Spotify built using Astro, a modern front-end site generator that offers incredibly fast performance. It is an educational tool designed for those interested in learning how modern web applications are built using Astro.
-
Clone this repository: https://github.com/juedsay/spotify-astro-clone.git
-
Navigate to the project folder:
cd spotify-astro-clone
-
Install the dependencies:
npm install
-
Run the project:
npx astro dev
Visit http://localhost:4321
in your browser to see the application in action.
Inside of this project, you'll see the following folders and files:
└── 📁spotify-astro-clone
└── 📁.astro
└── astro.config.mjs
└── package-lock.json
└── package.json
└── 📁public
└── favicon.svg
└── 📁fonts
└── 📁music
└── 📁src
└── 📁components
└── AsideMenu.astro
└── Card.astro
└── CardPlayButton.jsx
└── MusicsTable.astro
└── Player.jsx
└── PlaylistItemCard.astro
└── SideMenuCard.astro
└── SideMenuItem.astro
└── Slider.tsx
└── 📁icons
└── Home.astro
└── Library.astro
└── Pause.astro
└── Play.astro
└── Search.astro
└── Time.astro
└── 📁layouts
└── Layout.astro
└── 📁lib
└── colors.ts
└── data.ts
└── 📁pages
└── 📁api
└── get-info-playlist.json.js
└── index.astro
└── 📁playlist
└── [id].astro
└── 📁store
└── playerStore.js
└── tailwind.config.mjs
└── tsconfig.json
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install |
Installs dependencies |
npm run dev |
Starts local dev server at localhost:4321 |
npm run build |
Build your production site to ./dist/ |
npm run preview |
Preview your build locally, before deploying |
npm run astro ... |
Run CLI commands like astro add , astro check |
npm run astro -- --help |
Get help using the Astro CLI |
Contributions are always welcome. If you encounter any issues or have any suggestions, feel free to open an issue or submit a pull request.
This project is licensed under the MIT LICENSE - Created by Julian Simón.
- Fix bugs
- There are still many things left to do...