This is a service to save log history like check updates, integration test requests and much more of Ta-vivo APP, written in Golang.
Install packages
go get
go install
Run
go run ./src/
This service work with docker.
docker-compose up
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);
The unique enpoint is /logs
, you can use the following methods:
POST
{
"userId": 1,
"action": "update",
"metaData": {
"property": "value"
}
}