Metis portal provides a user-friendly frontend for the Metis API which is written in Vue.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

20 lines
489 B

4 years ago
  1. const http = require('http')
  2. const fs = require('fs')
  3. const httpPort = 80
  4. http.createServer((req, res) => {
  5. fs.readFile('index.html', 'utf-8', (err, content) => {
  6. if (err) {
  7. console.log('We cannot open "index.html" file.')
  8. }
  9. res.writeHead(200, {
  10. 'Content-Type': 'text/html; charset=utf-8'
  11. })
  12. res.end(content)
  13. })
  14. }).listen(httpPort, () => {
  15. console.log('Server listening on: http://localhost:%s', httpPort)
  16. })