mongodb >=3.6
node >=8.9.4
redis >=3.0.6
rabbitmq >=3.6 (When using Queue)
python >=3.6 (When using Queue)
For anything related to queue goto queue_server and try uploading file.
- Install requirements
- Install dependencies
npm install
- Add settings.js file in the root directory settings.js looks like
var exports = module.exports = {};
exports.DATABASES = [
{
"type": "mongo",
"db": "uploader",
"host": ["127.0.0.1"],
"port": ["27017"],
"user": "",
"pwd": ""
}
]
exports.CACHE = {
"db": 0,
"host": "127.0.0.1",
"port": "6379",
"pwd": "",
}
exports.CELERY = {
BROKER_URL: "amqp://guest:guest@localhost:5672//"
}
- Create result directory in project root
- Now run
node server.js
or for development runnpm run dev
Then go to http://127.0.0.1:3001?user=username and try uploading file.
Note: You need to pass user parameter to define which user is uploading file as we are storing file in username directory.
- Upload new file.
- Uploading file. You can get the real time progress.
- Pause, Resume or Cancel during upload
- If you come back to the page after refresh or after sometimes, you can see your file status.
- You can resume the old file upload by uploading same file. It will resume from where it left. Note: To resume after refresh, the file name must be same.