start server from index.js and export server module