This commit is contained in:
oitsjustjose 2020-10-17 23:34:27 -05:00
commit 231adbe93f
123 changed files with 16683 additions and 62496 deletions

13
backend/src/server.ts Normal file
View 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}`))