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