Use koa or express for handling routes, use es6 rest syntax. Use middleware passport and passport-local-mongoose for fetching user info.