You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 18, 2024. It is now read-only.
hi, I just try to generate express project, and I found three blank lines generated in app.js (in mvc model), I think it can be removed
constexpress=require('express');constconfig=require('./config/config');constdb=require('./app/models');constapp=express();module.exports=require('./config/express')(app,config);db.sequelize.sync().then(()=>{if(!module.parent){app.listen(config.port,()=>{console.log('Express server listening on port '+config.port);});}}).catch((e)=>{thrownewError(e);});
I am new to node, I rare see blew usage of module.exports , I have searched in google but didn't find this usage, can you please explain that?