Skip to content

CJS server side example code? #71

@nyck33

Description

@nyck33

ChatGPT gave me something like

const express = require('express').default;
const ziti = require('@openziti/ziti-sdk-nodejs').default;

// Your existing ExpressJS setup
const app = express();
// ... (other middleware, routes, etc.)

// Wrap your existing ExpressJS app with Ziti
const zitiApp = ziti.express(app, 'yourZitiServiceName');

// Listen
zitiApp.listen(3000, () => {
  console.log('Server running on http://localhost:3000/');
});

when I told it I want to integrate into Owasp Juice Shop app. But is there a more concrete example.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions