porteras v0.0.7
Portera
Awesome remote logs for node
Motivation
Coronavirus quarantine time at home, brought me to learn node. I began to do a sample project for the company where I work because it was something that I have in mind for some time ago. The project its like a middleware between our different management software and third part applications, this middleware should contain all bussiness logic necesary by thrird part systems. This part is more or less completed and I would wan add a GraphQL interfece. Then problem was that I have only my laptop and between code editor and web interface I haven´t enaugh screen to show query logs. Then I thought that I could use my tablet as a remote log viewer, and here is the result !!!
Installation
npm install portera
Portera
Portera is a client/server that run on port 3001 by default, you can change this using environment variable PORTERA_PORT. To run the server exec portera, once running you can open your favorite browser http://<portera_server_ip>:3001 and you should
Use portera in your code
const portera = require('portera');
// console outputs will be send by portera
portera('http://localhost:3001', console);
Portera commands
portera.log(...)
portera.info(...)
portera.warn(...)
portera.error(...)
portera.trace(...)
portera.stack()
4 years ago