"use strict"
const http = require('http')
const url = require('url')
const join = require('path').join()
const fileSystem = require('fs')
const ROOT = __dirname
const HTTP_SERVER_PORT = 3002
const httpServer = http.createServer((req, res) => {
const url = url.parse(req.url)
const path = join(ROOT, url.pathname)
})
const startHttpServer = () => {
httpServer.listen(HTTP_SERVER_PORT, () => {
console.log('Server listening on port ' + HTTP_SERVER_PORT + '.')
})
}
startHttpServer()