You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
tnud0 f89bb52fe5 fix download file error and delete zip file after downloading 2 years ago
backup/9 add upload mutiple 2 years ago
public fix download file error and delete zip file after downloading 2 years ago
src fix download file error and delete zip file after downloading 2 years ago
.babelrc add 2 years ago
.dockerignore add 2 years ago
.editorconfig add 2 years ago
.env.example add 2 years ago
.eslintignore add 2 years ago
.eslintrc add 2 years ago
.gitignore add 2 years ago
.gitlab-ci.yml add 2 years ago
Dockerfile add 2 years ago
README.md add 2 years ago
docker-compose.dev-event-dispatcher.yml add 2 years ago
docker-compose.dev-worker.yml add 2 years ago
docker-compose.dev.yml add 2 years ago
docker-compose.yml add 2 years ago
package.json fix delete user 2 years ago
process copy.yml add 2 years ago
process.yml add 2 years ago
yarn.lock add delete 2 years ago

README.md

B2C Backend File

pipeline status

Microservice handles all file logics

Requirements

Getting Started

Install dependencies:

yarn

Set environment variables:

cp .env.example .env

Running Locally

yarn dev

Running in Production

yarn start

Lint

# lint code with ESLint
yarn lint

# try to fix ESLint errors
yarn lint:fix

# lint and watch for changes
yarn lint:watch

Test

# run all tests with Mocha
yarn test

# run unit tests
yarn test:unit

# run integration tests
yarn test:integration

# run all tests and watch for changes
yarn test:watch

# open nyc test coverage reports
yarn coverage

Validate

# run lint and tests
yarn validate

Logs

# show logs in production
pm2 logs