Skip to content

ta-vivo/ta-vivo-audit-log

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
    }
}