Quick Start

Quick Start

To get started with Rerun, you need two things: the VS Code extension and the framework adaptor (e.g. Express, NextJS, etc.).

Install the VS Code Extension

Install the Rerun Visual Studio Code extension.

Install the Framework Adaptor

Install the adaptor for your framework of choice. Currently, we support Express but literally just email me (sam [at] demotime.com) if you need support for another framework/language.

Express

For express you install the middleware from NPM, and add it to each route you want to make rerunnable. That's it.

Make sure your NODE_ENV is set to dev or development - otherwise it doesn't do anything (so we don't add any latency in prod).

app.ts
// simply add the rerunnable middleware to any route
app.post('/hello', rerunnable, (req:any, res:any) => {
  res.send(`Hello ${req.query.name}!`);
});