server.js 276 Bytes
Newer Older
1
import express from 'express'
Kim, Chaerin's avatar
Kim, Chaerin committed
2
3
import connectDb from './utils/connectDb.js'
import placeRouter from './routes/place.routes.js'
4
5
6

const app = express()

Kim, Chaerin's avatar
Kim, Chaerin committed
7
app.use(express.json())
8

Kim, Chaerin's avatar
Kim, Chaerin committed
9
app.use(placeRouter)
10
11
12
13

app.listen(3001, () => {
    console.log('Server is listening on port 3001')
})