Skip to content
This repository has been archived by the owner on Dec 26, 2021. It is now read-only.

Latest commit

 

History

History
101 lines (68 loc) · 1.29 KB

README.md

File metadata and controls

101 lines (68 loc) · 1.29 KB

Twitter TimelineTerminationBan Test

API and testing logics for #TimelineTerminationBan

Based on https://github.com/danielfsousa/express-rest-es2017-boilerplate/

Requirements

Getting Started

Install dependencies:

npm i

Set environment variables:

cp .env.example .env

Running Locally

npm run dev

Running in Production

npm run start

Lint

# lint code with ESLint
npm run lint

# try to fix ESLint errors
npm run lint:fix

# lint and watch for changes
npm run lint:watch

Test

# run all tests with Mocha
npm run test

# run unit tests
npm run test:unit

# run integration tests
npm run test:integration

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

# open nyc test coverage reports
npm run coverage

Validate - runs at pre-commit

# run lint and tests
npm run validate

Logs

# show logs in production
pm2 logs

Documentation

# generate and open api documentation
npm run docs

Docker (might not work, yet)

# run container locally
npm run docker:dev

# run container in production
npm run docker:prod

# run tests
npm run docker:test