create server.js with mongoose and api