├── .dockerignore ├── .editorconfig ├── .eslintrc ├── .gitignore ├── .travis.yml ├── Dockerfile ├── README.md ├── docker-build.sh ├── index.js ├── package.json ├── pm2.json ├── src ├── api │ ├── download │ │ ├── download.controller.js │ │ ├── download.service.js │ │ └── index.js │ ├── health │ │ ├── health.controller.js │ │ └── index.js │ ├── index.js │ └── utils │ │ ├── Utils.js │ │ ├── constants.js │ │ └── index.js ├── config │ ├── index.js │ ├── koa.js │ └── routes.js └── server.js └── test ├── config └── config.test.js ├── download ├── download-controller.js └── download-route.test.js ├── files_mock ├── deter-amz │ ├── all.zip │ ├── daily_auth_d.json │ ├── daily_d.json │ ├── month_auth_d.json │ ├── month_d.json │ └── public.zip └── deter-cerrado │ ├── all.zip │ ├── daily_auth_d.json │ ├── daily_d.json │ ├── month_auth_d.json │ ├── month_d.json │ └── public.zip ├── health └── health.test.js ├── token └── token-service.test.js └── utils ├── secret_mock.txt └── utils.test.js /.dockerignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | npm-debug.log 3 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "standard" 3 | } -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/.travis.yml -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/Dockerfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/README.md -------------------------------------------------------------------------------- /docker-build.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/docker-build.sh -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/package.json -------------------------------------------------------------------------------- /pm2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/pm2.json -------------------------------------------------------------------------------- /src/api/download/download.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/api/download/download.controller.js -------------------------------------------------------------------------------- /src/api/download/download.service.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/api/download/download.service.js -------------------------------------------------------------------------------- /src/api/download/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/api/download/index.js -------------------------------------------------------------------------------- /src/api/health/health.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/api/health/health.controller.js -------------------------------------------------------------------------------- /src/api/health/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/api/health/index.js -------------------------------------------------------------------------------- /src/api/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/api/index.js -------------------------------------------------------------------------------- /src/api/utils/Utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/api/utils/Utils.js -------------------------------------------------------------------------------- /src/api/utils/constants.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/api/utils/constants.js -------------------------------------------------------------------------------- /src/api/utils/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/api/utils/index.js -------------------------------------------------------------------------------- /src/config/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/config/index.js -------------------------------------------------------------------------------- /src/config/koa.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/config/koa.js -------------------------------------------------------------------------------- /src/config/routes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/config/routes.js -------------------------------------------------------------------------------- /src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/src/server.js -------------------------------------------------------------------------------- /test/config/config.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/config/config.test.js -------------------------------------------------------------------------------- /test/download/download-controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/download/download-controller.js -------------------------------------------------------------------------------- /test/download/download-route.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/download/download-route.test.js -------------------------------------------------------------------------------- /test/files_mock/deter-amz/all.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/files_mock/deter-amz/all.zip -------------------------------------------------------------------------------- /test/files_mock/deter-amz/daily_auth_d.json: -------------------------------------------------------------------------------- 1 | {"data": "deter-amz daily authenticated file!"} -------------------------------------------------------------------------------- /test/files_mock/deter-amz/daily_d.json: -------------------------------------------------------------------------------- 1 | {"data": "deter-amz daily public file!"} -------------------------------------------------------------------------------- /test/files_mock/deter-amz/month_auth_d.json: -------------------------------------------------------------------------------- 1 | {"data": "deter-amz monthly authenticated file!"} -------------------------------------------------------------------------------- /test/files_mock/deter-amz/month_d.json: -------------------------------------------------------------------------------- 1 | {"data": "deter-amz monthly public file!"} -------------------------------------------------------------------------------- /test/files_mock/deter-amz/public.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/files_mock/deter-amz/public.zip -------------------------------------------------------------------------------- /test/files_mock/deter-cerrado/all.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/files_mock/deter-cerrado/all.zip -------------------------------------------------------------------------------- /test/files_mock/deter-cerrado/daily_auth_d.json: -------------------------------------------------------------------------------- 1 | {"data": "deter-cerrado daily authenticated file!"} -------------------------------------------------------------------------------- /test/files_mock/deter-cerrado/daily_d.json: -------------------------------------------------------------------------------- 1 | {"data": "deter-cerrado daily public file!"} -------------------------------------------------------------------------------- /test/files_mock/deter-cerrado/month_auth_d.json: -------------------------------------------------------------------------------- 1 | {"data": "deter-cerrado monthly authenticated file!"} -------------------------------------------------------------------------------- /test/files_mock/deter-cerrado/month_d.json: -------------------------------------------------------------------------------- 1 | {"data": "deter-cerrado monthly public file!"} -------------------------------------------------------------------------------- /test/files_mock/deter-cerrado/public.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/files_mock/deter-cerrado/public.zip -------------------------------------------------------------------------------- /test/health/health.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/health/health.test.js -------------------------------------------------------------------------------- /test/token/token-service.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/token/token-service.test.js -------------------------------------------------------------------------------- /test/utils/secret_mock.txt: -------------------------------------------------------------------------------- 1 | That is a very secret message -------------------------------------------------------------------------------- /test/utils/utils.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/terrabrasilis/file-delivery/HEAD/test/utils/utils.test.js --------------------------------------------------------------------------------