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.
 
tungd0 c8dc7a9507 Add new file database, count how many times its downloaded 1 year ago
backup/9 add upload mutiple 2 years ago
public Add new file database, count how many times its downloaded 1 year ago
src Add new file database, count how many times its downloaded 1 year 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 Add new file database, count how many times its downloaded 1 year ago
process copy.yml add 2 years ago
process.yml add 2 years ago
yarn.lock Add new file database, count how many times its downloaded 1 year 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