1.0.6 • Published 5 years ago
fullstack-monitor v1.0.6

About
Fullstack-monitor is log monitoring tools for developers, offering visibility of console logs, requests and responses from both the Client and Server side of your application in one single place.
This makes it easy to see what is happening across the stack as your front and back-end communicate.
In order to use this, you must also install the Fullstack-Monitor-CLI npm package.
Instructions
Installation
npm install fullstack-monitorFront-end Setup
- Import fullstack-monitor in front-end, usually
in index.js.
import FL from 'fullstack-monitor'- Invoke the
FL.setupfunction with the stringclientargument.
FL.setup('client');- Please note, any code executed before the
setupfunction is invoked will not be monitored.
Back-end Setup
- Import fullstack- monitor in back-end, usually in
server.jsorindex.js, with theserverargument.
const fl = require('fullstack-monitor');
fl.setup('server');- Pass the
fl.runintoapp.useas a middleware function, whereapprefers toconst app = express();.
app.use(fl.run);Run
Run your application with
npm run dev- Or the equivalent command in your setup.
User-Interface
- Globally install Fullstack-Monitor-CLI
$ npm install -g fullstack-monitor-cli- Bootup the
Fullstack-Monitor-CLIserver.
$ fullstack-monitor-cli --start- Go to
localhost:3861or the port configured to see the user interface of fullstack-monitor. Or just use the--chromecommand:
$ fullstack-monitor-cli --chromeIn Home Page, all logs types are logs are shown, currently there are four diffrent types of logs.
- Console.log coming from the client side - as Type : Client
- Console.log coming from the server side - as Type : Server
- Request coming from the client side - as Type : Request
- Repond going out from server side - as Type : Server
- For each Type, users can navigate through the Top Menu bar.
- There's Custom Tab in Top Menu Bar where user can select only the Type they want to see.
- By clicking on the each indiviaul line of data, detailed information of each log can be seen.
- With the Delete Button, users can delele all existing logs.
Example Project
For an example of Fullstack-Monitor installed on a project see this GitHub Repo here: