add package.json file and update server.js to find port from environment