cyboerg42 / filedrop

a simple file sharing site with duplicate file detection using mongodb and xxhash

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

filedrop

a simple file sharing site with duplicate file detection using mongodb and xxhash

dependencies : mongodb, nodejs

temporary install :

git clone https://github.com/cyboerg42/filedrop
cd filedrop
npm install
node app.js

install as a service :

cd /srv/
git clone https://github.com/cyboerg42/filedrop
groupadd nodejs
useradd -d /srv/filedrop -G nodejs nodejs
chown -R nodejs:nodejs /srv/filedrop

create service file at /etc/systemd/system/filedrop.service

[Unit]
Description=filedrop
Requires=After=mongod.service

[Service]
User=nodejs
Group=nodejs
ExecStart=/usr/bin/node /srv/filedrop/app.js
WorkingDirectory=/srv/filedrop/
Restart=always
RestartSec=10
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=nodejs-filedrop

[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable filedrop && systemctl start filedrop

About

a simple file sharing site with duplicate file detection using mongodb and xxhash

License:MIT License


Languages

Language:JavaScript 75.5%Language:HTML 15.2%Language:CSS 9.2%