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.
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"
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.
You need to have installed the node.js environnement, npm and a mongoDB database.
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.
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
http://x.x.x.x:yyyy'
x.x.x.x is to replace by your IP address and yyyy your port number
Enjoy.