mirror of
https://gitlab.com/nekoya/web.git
synced 2024-11-25 15:56:31 +01:00
15 lines
No EOL
366 B
JavaScript
15 lines
No EOL
366 B
JavaScript
const express = require('express')
|
|
const bodyParser = require('body-parser')
|
|
const session = require('express-session')
|
|
const app = express()
|
|
|
|
app.use(express.static('public'))
|
|
app.set('view engine', 'ejs')
|
|
|
|
const indexRouter = require('./routes/index');
|
|
|
|
app.use('/', indexRouter);
|
|
|
|
app.listen('3000', ()=> {
|
|
console.log('Server sudah berjalan di port 3000')
|
|
}) |