Quick Start
Get up and running with Pinorama Studio in minutes! This guide will walk you through the process of installing Pinorama Studio and integrating it with a simple Node.js application.
Prerequisites
- Node.js version 20 or higher.
- Terminal for starting the Pinorama Studio CLI.
Installation
Install Pinorama Studio globally:
sh
npm i -g pinorama-studiosh
pnpm i -g pinorama-studiosh
yarn global add pinorama-studioQuick Setup
Let's set up a minimal Fastify application with Pinorama Studio for log viewing:
Create a new directory:
shmkdir pinorama-demo && cd pinorama-demoInstall Fastify:
shnpm add fastifyshpnpm add fastifyshyarn add fastifyCreate an
index.jsfile with the following content:javascriptconst fastify = require("fastify")({ logger: true, // needed for piping logs to Pinorama! }); fastify.get("/", async (request, reply) => { request.log.info("Pinorama is awesome! 🚀"); return { hello: "world" }; }); fastify.listen({ port: 3000 });Run your application and pipe the output to Pinorama Studio:
shnode index.js | pinorama --open
This command will start your Fastify application, pipe its logs to Pinorama Studio, and open the Pinorama web interface in your default browser.
Next Steps
Check out the full Pinorama documentation for information on customizing your logging setup and using other Pinorama components.
Happy logging with Pinorama!
