ta-vivo / ta-vivo-audit-log

Service for handle all log history for audit

Home Page:https://github.com/ta-vivo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ta-vivo audit log

This is a service to save log history like check updates, integration test requests and much more of Ta-vivo APP, written in Golang.

Get started

Install packages

go get
go install

Run

go run ./src/

Docker

This service work with docker.

docker-compose up

Example of JWT creation

The service work with JWT, you can generate a JWT token with the following command using nodejs;

const jwt = require('jsonwebtoken');

const token = jwt.sign(
  { name: 'ta-vivo-api' },
  'super_secret',
  {
    expiresIn: '1y',
  }
);

console.log(token);

Use

The unique enpoint is /logs, you can use the following methods:

POST

{
    "userId": 1,
    "action": "update",
    "metaData": {
        "property": "value"
    }
}

About

Service for handle all log history for audit

https://github.com/ta-vivo


Languages

Language:Go 96.2%Language:Dockerfile 3.8%