{% extends "sentry/partial/client_config/node_base.html" %} {% load i18n %} {% block inner %}
{% blocktrans with 'https://github.com/mattrobenolt/raven-node' as link %}Start by installing raven-node:{% endblocktrans %}
npm install raven
{% trans "Register an instance of the Express middleware:" %}
var app = require('express').createServer(); app.use(raven.middleware.express('{% if dsn %}{{ dsn }}{% else %}SENTRY_DSN{% endif %}'));
{% trans "That's it! Raven automatically installs an error handling hook to pipe all uncaught exceptions to Sentry." %}
{% blocktrans with 'https://github.com/mattrobenolt/raven-node' as link %}For more information on other uses of Raven with Node.js, please see the official documentation for raven-node.{% endblocktrans %}
{% endblock %}