Express Integration
Express integration is built into unioc
and doesn't require a separate installation. You only need to install the main unioc
package.
Creating and Starting the App
ts
import { ExpressApp } from 'unioc/web-express'
async function bootstrap(): Promise<void> {
// Create an Express application
const app = new ExpressApp()
// Run directly
await app.run(3000).then(() => {
console.log(`Express server is running at http://localhost:3000`)
})
}
bootstrap()