{"size": 259, "ext": "js", "max_stars_repo_path": "src/example/index.js", "max_stars_repo_name": "seangels/graphql-mongodb-server", "max_stars_repo_stars_event_min_datetime": "2017-05-10T11:25:22.000Z", "max_stars_repo_stars_event_max_datetime": "2017-08-18T08:21:21.000Z", "max_issues_repo_path": "src/example/index.js", "max_issues_repo_name": "seangels/graphql-mongodb-server", "max_issues_repo_issues_event_min_datetime": "2017-04-23T11:35:19.000Z", "max_issues_repo_issues_event_max_datetime": "2017-09-30T11:53:27.000Z", "max_forks_repo_path": "src/example/index.js", "max_forks_repo_name": "seangels/graphql-mongodb-server", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": 8, "max_forks_count": null, "avg_line_length": 19.9230769231, "max_line_length": 51, "alphanum_fraction": 0.6447876448}
// @flow

import { mongoose } from './models'
import { mongoUri } from '../config'
import app from './app'

const port = parseInt(process.env.PORT || 3100, 10)

mongoose.open(mongoUri, () => {
  app.listen(port)
  console.log(`App listen to port ${port}`)
})
