Skip to content
This repository has been archived by the owner on Feb 24, 2018. It is now read-only.
/ kraken Public archive

A file manager that you will fall in love <3

Notifications You must be signed in to change notification settings

FlorentinDUBOIS/kraken

Repository files navigation

Kraken Build Status

This project have to main goal to provide an easy file manager. That can be use in differents ways. First, this project can be run by using a docker or directly by running the node.js application.

Environnements variables

There are three environment variables that can be used to configure the application. These variables are used to connect to the mongo database.

export MONGODB_HOST="localhost"
export MONGODB_PORT="27017"
export MONGODB_BASE="kraken"

By docker

First, you need a mongodb database:

docker run --name mongodb -p 27017:27017 -d mongo:latest

Now, run the application and link it, to the mongo database:

docker run --name kraken -p 80:80 --link mongodb:mongo -v </path/to/directory/to/list>:/usr/src/app/mount -e MONGODB_HOST="mongodb" -e MONGODB_PORT="27017" -e MONGODB_BASE="kraken" -d florentindubois/kraken:stable 

then run:

docker exec -ti kraken bash

See how finish this install below.

By run a standalone server

Prerequissites

You need to have installed the node.js environnement, npm and a mongoDB database.

Installation

First, clone the projects:

git clone https://github.com/FlorentinDUBOIS/file-manager.git

Go into the folder just cloned:

cd file-manager

Create a symbolic link to mount your file system:

ln -s /path/to/directory/to/list ./mount

Now, install dependencies:

npm install

See how finish just below.

Set environment variable

You can use an evironment variable like this:

example provide to the port number

echo PORT=yyyy >> $HOME/.profile

You can also append the PORT environment variable in /etc/environment

yyyy is your port number

OK, so now you're ready to test your app, go to:

http://x.x.x.x:yyyy'

x.x.x.x is to replace by your IP address and yyyy your port number

Enjoy.

About

A file manager that you will fall in love <3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published