import * as express from 'express' ; import { connectDb } from './config/config' ; import * as chalk from 'chalk' ; import profiles from './Profiles/Routes/profiles.routes' ; const appStart = ( ) => { const app = express ( ) ; const profilesViews = profiles ( app ) ; app . set ( 'view engine' , 'pug' ) ; app . listen ( '3002' , ( ) => console . log ( chalk . green ( 'Server listening on port 3002' ) ) ) ; } ; appStart ( ) ;