UNPKG

express-boilerplate-generator

Version:

Generate new express server boilerplate with Typescript and documentation support

11 lines (8 loc) 274 B
import './LoadEnv'; // Must be the first import import app from './server'; // Start the server const port = Number(process.env.PORT || 3000); const server = app.listen(port, () => { console.log('express server 🚀 started on port: ' + port); }); export default server;