Halaman statis ekspres

const express = require('express')
const path = require('path')

const app = express()
app.use('/public', express.static(path(__dirname) + '/public'))
// the directory '/public' represents whatever direcotory your html file is
// example: if your host naturally looks for a file named 'index.html', then
//   when running this server on that host, it will look in the directory for
//   'index.html' and will automatically display it when someone goes to 
//   (yoursite).com.  It varies from host to host.
//   Otherwise, read the docs for additional options.

// http://expressjs.com/en/4x/api.html#express.static
Witty Wren