{"size": 649, "ext": "js", "max_stars_repo_path": "Backend/index.js", "max_stars_repo_name": "wevertonmata/app-protegida", "max_stars_repo_stars_event_min_datetime": "2020-12-20T02:12:40.000Z", "max_stars_repo_stars_event_max_datetime": "2020-12-26T16:02:48.000Z", "max_issues_repo_path": "Backend/index.js", "max_issues_repo_name": "wevertonmata/app-protegida", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Backend/index.js", "max_forks_repo_name": "wevertonmata/app-protegida", "max_forks_repo_forks_event_min_datetime": "2020-12-20T02:12:41.000Z", "max_forks_repo_forks_event_max_datetime": "2020-12-20T02:12:41.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 1, "avg_line_length": 27.0416666667, "max_line_length": 102, "alphanum_fraction": 0.6902927581}
const express = require('express');
const app = express();
const consign = require('consign');
const bodyParser = require("body-parser");

app.use(express.json());
app.use(bodyParser.urlencoded({ extended: true }));

const connection = require('./src/database/connection');
	
app.connection = connection;

consign()
	.include('./src/config/passport.js')
	.then('./src/config/middlewares.js')
	.then('./src/controllers')
	.then('./src/routes.js')
    .into(app) //Isso diz que sempre que ele vai carregar um modulo ele vai passar app como parâmetro.


app.listen(3333, () => {
    console.log("Backend executando...")
});
//start back-end: npm start 