{"size": 385, "ext": "js", "max_stars_repo_path": "index.js", "max_stars_repo_name": "401-advanced-javascript-raghad/authenticated-api-server", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "index.js", "max_issues_repo_name": "401-advanced-javascript-raghad/authenticated-api-server", "max_issues_repo_issues_event_min_datetime": "2021-05-11T17:37:34.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-11T17:37:34.000Z", "max_forks_repo_path": "index.js", "max_forks_repo_name": "401-advanced-javascript-raghad/api-server-new", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.6470588235, "max_line_length": 60, "alphanum_fraction": 0.7012987013}
'use strict';
require('dotenv').config();
const mongoose = require('mongoose');

const app = require('./lib/server');
const PORT = process.env.PORT || 3000;

const mongooseOptions = {
  useUnifiedTopology: true,
  useNewUrlParser: true,
  useCreateIndex: true,
  useFindAndModify: false,
};

mongoose.connect(process.env.MONGODB_URI, mongooseOptions);
app.start(PORT);
