Git Product home page Git Product logo

music-app's Introduction

Music App

A simple music web application created using Vue.js with Tailwind CSS. You can play and pause the song and go to the next and previous song or click on the song to play.

Made for lovely playlists and to enjoy your favourite songs.

If you like this project please feel free to star it.

Project Setup

For Vue.js

  • The CLI (@vue/cli) is a globally installed npm package and provides the vue command in your terminal.
npm install -g @vue/cli
  • To create a new Project
vue create music-app

For Tailwind CSS

  • Install Tailwind CSS and its peer dependencies and then run the init command to generate two files tailwind.config.js and postcss.config.js.
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init -p
  • Now add the path to the tailwind config file as shown below:
module.exports = {
  content: ["./index.html",
            "./src/**/*.{vue,js,ts,jsx,tsx}"],
  theme: {
    extend: {},
  },
  plugins: [],
};

  • Now create an index.css file in the src(source) folder and add the @tailwind directive to the file for each of the Tailwind's layers.
@tailwind base;
@tailwind components;
@tailwind utilities;

Note: In this project I have created a css folder inside of the assets folder which is inside the src folder.

  • The assets is where you would put your images/stylesheets/videos etc. that you will import in the vue files.

  • Now after following the above steps, one last step is to import the css file in the main.js file.

import "./assets/css/tailwind.css";
  • Finally run the server😃
npm run serve

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.