2023-06-15 11:39:13 +00:00
|
|
|
import 'dotenv/config'
|
2023-06-15 19:55:09 +00:00
|
|
|
import { app } from './server.js'
|
2023-06-15 11:39:13 +00:00
|
|
|
|
|
|
|
const PORT = process.env.PORT || 3000
|
|
|
|
|
|
|
|
// Start server
|
|
|
|
app.listen(PORT, () => {
|
|
|
|
console.log(`Server listening on port ${PORT}`)
|
|
|
|
})
|