This repository has been archived on 2022-09-21. You can view files and clone it, but cannot push or open issues or pull requests.
|
import * as http from 'http'
|
|
import API from './api'
|
|
|
|
const port = process.env.PORT || 3000
|
|
|
|
API.listen(port, (err) => {
|
|
if (err) return console.log(err)
|
|
return console.log(`API server is listening on ${port}`)
|
|
})
|