Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/zackkhan/UVA
Browse files Browse the repository at this point in the history
  • Loading branch information
mattjfan committed Mar 25, 2018
2 parents 647ad43 + 6df46fd commit e55355f
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 7,499 deletions.
5 changes: 3 additions & 2 deletions central-server/index.js
Expand Up @@ -3,6 +3,7 @@ var app = express()
var bodyParser = require('body-parser')
var request = require('request')
var gun_list = {}
var path = require('path')
var g_api_key = "AIzaSyAlCfacCR71MjuL3VPirz-dMnU0QktlV7E"

function event_object(id, long, lat){
Expand All @@ -15,6 +16,7 @@ function event_object(id, long, lat){

app.use(bodyParser.json())
app.use(bodyParser.urlencoded({ extended: false }))
app.use(express.static(__dirname + '/public'));

var http = require('http').Server(app)

Expand All @@ -23,8 +25,7 @@ function toggleGun(id, status) {
}

app.get('/', function(req, res) {
res.render('home',{});
console.log("home");
res.sendFile(path.join(__dirname + '/public/index.html'));
});

app.post('/shot', function(req, res){
Expand Down
12 changes: 12 additions & 0 deletions central-server/public/index.html
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>

<h1>My First Heading</h1>
<p>My first paragraph.</p>

</body>
</html>
3 changes: 3 additions & 0 deletions central-server/public/styles.css
@@ -0,0 +1,3 @@
p {
color: red;
}
21 changes: 0 additions & 21 deletions client/.gitignore

This file was deleted.

16 changes: 0 additions & 16 deletions client/package.json

This file was deleted.

Binary file removed client/public/favicon.ico
Binary file not shown.
40 changes: 0 additions & 40 deletions client/public/index.html

This file was deleted.

15 changes: 0 additions & 15 deletions client/public/manifest.json

This file was deleted.

28 changes: 0 additions & 28 deletions client/src/App.css

This file was deleted.

21 changes: 0 additions & 21 deletions client/src/App.js

This file was deleted.

9 changes: 0 additions & 9 deletions client/src/App.test.js

This file was deleted.

5 changes: 0 additions & 5 deletions client/src/index.css

This file was deleted.

8 changes: 0 additions & 8 deletions client/src/index.js

This file was deleted.

7 changes: 0 additions & 7 deletions client/src/logo.svg

This file was deleted.

117 changes: 0 additions & 117 deletions client/src/registerServiceWorker.js

This file was deleted.

0 comments on commit e55355f

Please sign in to comment.