Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 399 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 399 Bytes

a simple gateway nodejs starter kit 🚦

how to start server ?

  • npm install
  • npm run dev

https case

const https = require('https');
const fs = require('fs');

const options = {
  key: fs.readFileSync('key.pem'),
  cert: fs.readFileSync('cert.pem')
};

https.createServer(options, function (req, res) {
  res.writeHead(200);
  res.end("hello world\n");
}).listen(8000)