diff --git a/app.js b/app.js index 7a3d11d8d..cf5382adb 100644 --- a/app.js +++ b/app.js @@ -35,10 +35,5 @@ app.get("/*", function (req, res) { // /party is the place where the homescreen will be app.use("/", indexRouter); app.use("/party", partyPageRouter); -// const PORT = process.env.PORT || 3001; -// app.listen(PORT, () => { -// console.log(`Mixing it up on port ${PORT}`); -// }); -// catch 404 and forward to error handler module.exports = app; diff --git a/node_modules/.bin/acorn b/node_modules/.bin/acorn index c31c43046..12d947cbd 100644 --- a/node_modules/.bin/acorn +++ b/node_modules/.bin/acorn @@ -1,3 +1,5 @@ +#node_modules should be added in git ignore and not pushed to the repo! + #!/bin/sh basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") diff --git a/public/javascripts/main.js b/public/javascripts/main.js deleted file mode 100644 index 3fde8d081..000000000 --- a/public/javascripts/main.js +++ /dev/null @@ -1,78 +0,0 @@ -// var express = require('express'); - -// const myDB = require('../../db/myMongoDb.js'); -// var CommentBox = React.createClass({ -// render: function() { -// return ( -//
-// Hello, world! I am a CommentBox. -//
-// ); -// } -// }); -// React.renderComponent( -// , -// document.getElementById('content') -// ); -// alert("hello"); -// var CommentBox = React.createClass({ -// render: function() { -// return ( -//
-// Hello, world! I am a CommentBox. -//
-// ); -// } -// }); -// React.renderComponent( -// , -// document.getElementById('content') -// ); -// console.log(myDB); - -// document.getElementById("content").innerHTML = "whaasfdasdfasdfadsfdsafdsafdsatever"; - -// cardContainer = document.getElementById('card-container'); -// const results = await myDB.getParties(); -// console.log(results); -// cardContainer.innerHTML = results; - -// let cardContainer; - -// let createTaskCard = (task) => { - -// let card = document.createElement('div'); -// card.className = 'card shadow cursor-pointer'; - -// let cardBody = document.createElement('div'); -// cardBody.className = 'card-body'; - -// let title = document.createElement('h5'); -// title.innerText = task.title; -// title.className = 'card-title'; - -// let color = document.createElement('div'); -// color.innerText = task.color; -// color.className = 'card-color'; - - -// cardBody.appendChild(title); -// cardBody.appendChild(color); -// card.appendChild(cardBody); -// cardContainer.appendChild(card); - -// } - -// let initListOfTasks = async() => { -// if (cardContainer) { -// document.getElementById('card-container').replaceWith(cardContainer); -// return; -// } - -// cardContainer = document.getElementById('card-container'); -// const results = await myDB.getParties(); -// cardContainer.innerHTML = results; -// // tasks.forEach((task) => { -// // createTaskCard(task); -// // }); -// }; \ No newline at end of file