{"size": 432, "ext": "js", "max_stars_repo_path": "main.js", "max_stars_repo_name": "VikashK21/Turing_E-Commerce_API", "max_stars_repo_stars_event_min_datetime": "2022-01-25T19:00:39.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-25T19:00:39.000Z", "max_issues_repo_path": "main.js", "max_issues_repo_name": "VikashK21/Turing_E-Commerce_API", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "main.js", "max_forks_repo_name": "VikashK21/Turing_E-Commerce_API", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 21.6, "max_line_length": 49, "alphanum_fraction": 0.625}
require('dotenv').config()  
const express = require('express');
const app = express();
const morgan = require('morgan');
const port = process.env.PORT || 2030;
const router = require('./routes/router')

app.use(morgan('dev'));
app.use(express.json());
app.use('/', router)

app.get('/', (req, res) => {
    res.send('Welcome to the front page.')
});


app.listen(port, () => {
    console.log(`Listening at the port ${port}`);
});
