Last active
July 2, 2017 05:54
-
-
Save nomoney4me/ebe999a8284e06e6be513cd72c77acd8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<form> | |
</form> | |
<script> | |
/* | |
on form submit -> post to index2.js -> console.log(result from index2.js) | |
*/ | |
</script> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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')); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//do knex stuffs | |
//return info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment