initial project

This commit is contained in:
Ahmad Ardiansyah
2025-09-28 09:50:05 +07:00
commit 09f4d5ee46
5 changed files with 1151 additions and 0 deletions

20
server.js Normal file
View File

@@ -0,0 +1,20 @@
const express = require('express')
const app = express()
const port = 3000
const { logger, winstonLogger } = require('./logger/winston');
app.use(express.json());
app.use(winstonLogger());
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.get('/healthz', (req, res) => {
res.status(200).send('OK')
})
app.listen(port, () => {
logger.info(`App listening on port ${port}`)
})