Git Product home page Git Product logo

music-cloud's Introduction

music-cloud

A cloud music player that user can upload music to and listen from.

File structure

├── music-cloud
│   ├── backend-go  //a go project
│   ├── frontend-android //an Android project
│   ├── frontend-web //a web project
│   ├── screenshot //place to store UI screenshots

Requirements

  1. a cloud server based on linux (In fact it's OK to do it on your computer locally if you just want to have a test. )

UI screenshot

backend-go quick start

download executable directly

I would recommend you just download release executable targets from this page, also it is not a bad choice to build it from source code.

build from source code

  1. clone this project

    cd ~
    git clone https://github.com/IzumiSakai-zy/music-cloud.git
  2. checkout dependencies then build executable target

    cd ~/music-cloud/backend-go
    go get . #make sure dependency of this project is right
    env GOOS=linux GOARCH=amd64 go build -o music-cloud-linux-amd64
  3. transfer executable target to your remote server based on linux. you can try scp command below or use some ftp client such as XFtp.

    cd ~/music-cloud/backend-go
    scp music-cloud-linux-amd64 'username'@'ip address':~
  4. setup Mysql database. just execute sql commands below.

    create table `music-cloud`.song
    (
        id     varchar(64)  not null
            primary key,
        title  varchar(512) null,
        artist varchar(512) null
    );
  5. login in your remote linux server and deploy backend service. you can just deploy it on your server itself, or you can deploy it in a docker container, whatever is OK.

    ssh 'username'@'ip address'
    cd ~
    mkdir music-cloud
    nohup ./music-cloud-linux-amd64 --MysqlServerHost 'mysql server address' --MysqlPassword 'mysql password' > log.txt &
  6. Over


frontend-android quick start

download app directly

click this page

note that the apk in this page uses a backend service which is just for testing.

I can't guarantee the backend service will be ok in the future.

I strongly recommend you build your own apk from source code.

build from source code

  1. clone project. (just skip if you have done it in 'backend-go quick start')

    cd ~
    git clone https://github.com/IzumiSakai-zy/music-cloud.git
  2. set your your own backend service ip address in this file

    package izumi.music_cloud.global
    
    object GlobalConst {
        //here to set your BASE_URL for retrofit
        const val BASE_URL = "http://xxx.xxx.xxx.xxx:8001"
    }
  3. build

    cd ~/frontend-anroid
    ./gradlew build # this step will sync gradle to get dependencies then build a debug apk if it's success to sync.
  4. over


frontend-web quick start

still in progress!!!

Thanks

DsoMusic

Apple Music for Android

music-cloud's People

Contributors

ran-mori avatar zhengyi-izumi avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kevinxu-01

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.