|
@@ -6,7 +6,7 @@ import jwt from 'jwt-simple'
|
|
|
import config from './config/database'
|
|
|
import User from './models/user'
|
|
|
|
|
|
-const port = process.env.PORT || 8080
|
|
|
+const port = process.env.PORT || 3002
|
|
|
const app = express()
|
|
|
|
|
|
app.use(bodyParser.urlencoded({ extended: false }))
|
|
@@ -42,4 +42,4 @@ apiRoutes.post('/signup', (req, res) => {
|
|
|
app.use('/api', apiRoutes)
|
|
|
|
|
|
app.listen(port)
|
|
|
-console.log('Server running.')
|
|
|
+console.log(`Server running on port ${port}.`)
|