Metrics Service

Requirements

Installation

First, clone the repository

git clone https://github.com/Twit-Snap/metrics_service.git

Then, if you want to install the requirements to continue with the development run:

npm install

Run it

Run in development

npm run dev

Run in production

Build

npm run build

Run

npm run start

Run linter

npm run lint

Run tests

Run

npm run test

Coverage

npm run coverage

Secrets and environment variables

Layer Structure

The service is divided into the following layers:

Open API specification

---
openapi: 3.1.0
info:
    title: Metrics service
    description: Service to manage twitsnapp metrics
    version: 1.0.0
paths:
    "/metrics/":
        post:
            description: ""
            responses:
                "201":
                    description: Created
        get:
            description: ""
            parameters:
                - name: type
                  in: query
                  type: string
                - name: username
                  in: query
                  type: string
                - name: dateRange
                  in: query
                  type: string
                - name: auth
                  in: query
                  type: string
            responses:
                "200":
                    description: OK