--
This commit is contained in:
parent
8fcc733093
commit
231adbe93f
123 changed files with 16683 additions and 62496 deletions
13
backend/src/server.ts
Normal file
13
backend/src/server.ts
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { config as LoadDotenv } from 'dotenv'
|
||||
import app from './app'
|
||||
import connectDB from './db'
|
||||
|
||||
if(process.env.NODE_ENV !== "production") {
|
||||
LoadDotenv()
|
||||
}
|
||||
|
||||
connectDB()
|
||||
|
||||
const port = process.env.PORT || 3000
|
||||
|
||||
app.listen(port, () => console.log(`Listening at http://127.0.0.1:${port}`))
|
||||
Loading…
Reference in a new issue