A backend module that can handle file upload, download & metadata
$ pnpm install
Create .env
file inside the root of this project
POSTGRES_HOST
POSTGRES_PORT
POSTGRES_USER
POSTGRES_PASSWORD
POSTGRES_DB
APPLICATION_PORT
# supported file formats
SUPPORTED_FILE_FORMATS=application/pdf,image/jpeg,image/png,audio/mpeg,video/mp4
# supported max file size (should be in MBs)
SUPPORTED_MAX_FILE_SIZE=10
# development
$ pnpm run start
# watch mode
$ pnpm run start:dev
# production mode
$ pnpm run start:prod
# unit tests
$ pnpm run test
# e2e tests
$ pnpm run test:e2e
# test coverage
$ pnpm run test:cov