Skip to content

Latest commit

 

History

History
77 lines (59 loc) · 2.88 KB

README.md

File metadata and controls

77 lines (59 loc) · 2.88 KB

Melody

A music web application built in angular 1.6

Demo -> Melody

Screen shot

Home

Home page

Song

Song page

About

About page

How to build the app

clone this repo

git clone https://github.com/NevenLeung/melody.git

install the dependency

bower install

install dev-dependency

npm install

build

gulp

How to run a mock server

  • The built files will be in dist folder.
  • Create a folder named mock-server under the root path of this project. Put the db.json file into mock-server folder.
  • Make a copy of dist, paste it into mock-server and rename it public .
  • Create two folder in mock-server/public/, images and music.
  • Put your own music files into music folder and put picture files into images folder.
  • Update db.json to match the filename of your own.
  • Install and run json-server
    npm install json-server -g
    cd mock-server
    json-server --watch db.json 

The mock-server structure should be like this. The content in ( ) is the usage of the folder.

mock-server    
    |--public (the copy of dist)
        |--(some files of dist)
        |--images
            |--album (store album cover)
            |--artist (store artist photo)
            |--avatar (store avatar for selection)
            |--logo.png  
        |--music (store music files) 
    |--db.json (the mock database)  

Run it with melody-server

Built With

License

MIT