Commit 86ddf602 authored by Dennis Willers's avatar Dennis Willers 🏀

Add index.js

parent c8a4dec8
Pipeline #408 passed with stages
in 2 minutes and 22 seconds
require('./socket');
const express = require('express');
const cors = require('cors');
const bodyParser = require('body-parser');
const mysql = require('mysql');
//const events = require('./events');
/*const connection = mysql.createConnection({
host : '192.168.0.50',
port : '3307',
user : '--',
password : '--',
database : '--',
multipleStatements: true,
});
connection.connect();
const port = process.env.PORT || 8080;
const app = express()
.use(cors())
.use(bodyParser.json())
.use(events(connection));
app.listen(port, () => {
console.log(`Express server listening on port ${port}`);
});*/
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "Voting", "name": "Voting",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"main": "socket.js", "main": "index.js",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"start": "nodemon index.js", "start": "nodemon index.js",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment