export server and create index.js