The indexer-tree is an application in nodejs for mapping directories and files, where the objective is to save the path in mongoDB to decrease the search and browsing time in directories.
$ yarn install
# node development - edit variables on ./env/node.env
$ yarn start
# node production mode - edit variables on ./env/node.env
$ yarn build
$ yarn start:prod
# docker development - edit variables on ./env/docker.env
$ yarn dev
# docker production mode - edit variables on ./env/docker.env
$ yarn prod
BULL_QUEUE
(default: fileIndexer
)
BULL_MAX
(default: 10
): Max jobs run per second.
BULL_BOARD
(default: false
): if true bull-board runing on /bull-board
.
INTERVAL
(default: 100
): Interval of file system polling, in milliseconds.
BINARY_INTERVAL
(default: 300
): Interval of file system
polling for binary files.
MONGO_COLLECTION
(default: files
)
REDIS_HOST
(required)
REDIS_PORT
(required)
REDIS_PASS
MONGO_HOST
(required)
MONGO_PORT
(required)
MONGO_DATABASE
(default: indexer-tree
)
MONGO_USER
(required)
MONGO_PASS
(required)
MONGO_AUTH_SOURCE
(default: admin
)
S3_REGION
(required)
S3_ACCESS_KEY_ID
(required)
S3_SECRET_ACCESS_KEY
(required)
S3_API_VERSION
(required)
S3_BUCKET
(required)
S3_PREFIX_KEY
- Authors - Marcos Paulo and Leonardo Farias.
Indexer Tree is MIT licensed.