DEV Community

pooyaalamdari
pooyaalamdari

Posted on

node start 1

// in index.js file

// This line exports a class named Application from this module
module.export = class Application {

}

// in server.js file

// This line imports the Application class from the app module
const App = require('./app');

// This line creates a new instance of the Application class
new App();

Enter fullscreen mode Exit fullscreen mode

Top comments (0)