import express from 'express';
import bodyParser from 'body-parser';
import session from 'express-session';

const app = express();
let port = process.env.PORT || 3000;
app.use(express.static('public'));
app.use(express.json());
app.use(bodyParser.urlencoded({ extended:true }));
app.set('view engine', 'ejs');

app.get('/',(req,res) => {
    res.render('index')
});

app.listen(port,() => {
    console.log(`Sever running on ${port}`);
    
})