Skip to content

Commit

Permalink
added base files for backend
Browse files Browse the repository at this point in the history
  • Loading branch information
fauwara committed Sep 4, 2021
1 parent 245ed85 commit c63ba93
Show file tree
Hide file tree
Showing 6 changed files with 415 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8" />
<title>NOOB GAME</title>
<script type="text/javascript" src="./phaser.min.js"></script>
<script type="text/javascript" src="./src/phaser.min.js"></script>
<link rel="stylesheet" href="./src/css/game.css" />

<script type="text/javascript" src="./src/js/bootGame.js"></script>
Expand Down
18 changes: 18 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const express = require('express');

const app = express();

app.use('/src', express.static(__dirname + '/src'));

app.get('/', (req, res) => {
res.sendFile(__dirname + '/index.html', (err) = {
if(err) {
console.log(err);
res.status(404).send(err);
}
});
});

app.listen(5000, () => {
console.log("sever is running.");
});
Loading

0 comments on commit c63ba93

Please sign in to comment.