Skip to content

Instantly share code, notes, and snippets.

@nomoney4me
Last active July 2, 2017 05:54
Show Gist options
  • Save nomoney4me/ebe999a8284e06e6be513cd72c77acd8 to your computer and use it in GitHub Desktop.
Save nomoney4me/ebe999a8284e06e6be513cd72c77acd8 to your computer and use it in GitHub Desktop.
<html>
<form>
</form>
<script>
/*
on form submit -> post to index2.js -> console.log(result from index2.js)
*/
</script>
</html>
var express = require('express');
var app = express();
var https = require('https');
var server = https.createServer({
key: fs.readFileSync(__dirname+'/key'),
cert: fs.readFileSync(__dirname+'/cert')
}, app);
server.listen(3000)
app.use(express.static(__dirname+'/public'));
//do knex stuffs
//return info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment