const { Framework } = require("@midwayjs/koa"); const { Bootstrap } = require("@midwayjs/bootstrap"); const web = new Framework().configure({ port: 7002, }); Bootstrap.load(web) .run() .then(() => { console.log("Your application is running at http://localhost:7002"); });