Created
March 21, 2020 21:30
-
-
Save matthewoestreich/c40838bf19f06b7ef7f914c586294cf2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 bodyParser = require('body-parser') | |
var cors = require('cors') | |
var main = express() | |
main.use(cors()) | |
var server = main.listen(8000); | |
var io = require('socket.io').listen(server); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment