Giter Club home page Giter Club logo

musichub's Introduction

MusicHub

Written in golang by @aki237 and @hermes

A music stash and search server.

Synopsis

  • Installation
  • Usage
  • Contributing

Installation

I exactly don't know the go get way to get the source as my "gospace" is different.

Folder Structure

Probably you have to make a folder structure as follows.....(If you are ready to mess around with the import statements, just skip this.....) Make a folder server under src/ folder. Inside that folder:

git clone https://github.com/aki237/MusicHub server

And another most important gosrc in the sqlite3 driver to process sqlite3 requests using the database/sql go header.

go get github.com/mattn/go-sqlite3

Now alter the import in the serveraux or copy go-sqlite3 to $GOPATH/src/server/ folder. Probably your workspace must be similar to mine. This projects is of five parts....

  1. main server (server/server)
  2. server's functions (server/server/serveraux/)
  3. sqlite3 driver (server/gosqlite3)
  4. MP3 Metadata Parser(server/server/mp3metap)
  5. md5 checksum finder (server/server/returnMD5)

Probably we won't touch the go-sqlite3..... So let us compile it into library. Else while running each time it take quite some time to compile.

cd $GOPATH/src/server/go-sqlite3
go install

This will compile that into a library. Now lets compile all other components and run the server.....

Compiling other components

To compile other components, a make file has been included

make

Now to run the server,

make runserver

The program will be listening at the port 1080 in your localhost for now. You can change that by altering the "hubconfig.json" file in the project folder. Also make sure that ffmpeg tools are installed, and are in the PATH variable. This project is built and tested in Fedora 22 environment.

Usage

Home Page Search Page

  • Search the keyword in your database to list out songs (New updated search page : with a nice looking player) (Now this player is movable around the page with the help of the handle on the top left corner.)
  • Upload to upload your music........(This records the mp3 metadata in the database)
  • API Page - http://[server]:[port]/api
  • Credits - Obvious

Contributing

  • Get a good grasp of golang.(This book is fast and awesome)
  • Please report any issues or loopholes in this project.
Extras

My general website aesthetics is crap.... So thats your job to beautify your site

musichub's People

Contributors

aki237 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.