Skip to content
Thomas Tortorini edited this page Mar 8, 2016 · 3 revisions

How to build FilePlayer on your personnal localhost

FilePlayer use Sass and UglifyJS to build and compresse the CSS and the JS respectively.
To install these two softwares you have to execute :

gem install sass
npm install uglify-js -g
  • To use gem you have to install Ruby. If you are on :

    • Windows download and install RubyInstaller.
    • Debian or Ubuntu use sudo apt-get install ruby-full.
    • CentOS, Fedora, or RHEL use sudo yum install ruby.
  • To use npm you have to install Node.js.
    Go on nodejs.org/en/download/ to download and install it for your system.

After all that, you have to clone the FilePlayer's repositories:

cd /c/wamp/www/
mkdir fileplayer
cd fileplayer
git clone https://github.com/FilePlayer/dep.git
git clone https://github.com/FilePlayer/visualisations.git
git clone https://github.com/FilePlayer/fileplayer.github.io.git
# If you want to have some tiny media test files you can clone also this one:
git clone https://github.com/FilePlayer/test.git

After this step done, we have to build our CSS / JS :

cd fileplayer/fileplayer.github.io
./build.sh

And just open your browser on http://localhost/fileplayer/fileplayer.github.io/ and normally, it's works :)

Clone this wiki locally