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.
Hai Q. Le
7bd4b58a0d
|
1 year ago | |
---|---|---|
backup/9 | 2 years ago | |
public | 2 years ago | |
src | 1 year ago | |
.babelrc | 2 years ago | |
.dockerignore | 2 years ago | |
.editorconfig | 2 years ago | |
.env.example | 2 years ago | |
.eslintignore | 2 years ago | |
.eslintrc | 2 years ago | |
.gitignore | 2 years ago | |
.gitlab-ci.yml | 2 years ago | |
Dockerfile | 2 years ago | |
README.md | 2 years ago | |
docker-compose.dev-event-dispatcher.yml | 2 years ago | |
docker-compose.dev-worker.yml | 2 years ago | |
docker-compose.dev.yml | 2 years ago | |
docker-compose.yml | 2 years ago | |
package.json | 2 years ago | |
process copy.yml | 2 years ago | |
process.yml | 2 years ago | |
yarn.lock | 2 years ago |
README.md
B2C Backend File
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