Skip to content

Commit c63ba93

Browse files
committedSep 4, 2021
added base files for backend
1 parent 245ed85 commit c63ba93

File tree

6 files changed

+415
-1
lines changed

6 files changed

+415
-1
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

‎index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<head>
55
<meta charset="UTF-8" />
66
<title>NOOB GAME</title>
7-
<script type="text/javascript" src="./phaser.min.js"></script>
7+
<script type="text/javascript" src="./src/phaser.min.js"></script>
88
<link rel="stylesheet" href="./src/css/game.css" />
99

1010
<script type="text/javascript" src="./src/js/bootGame.js"></script>

‎index.js

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
const express = require('express');
2+
3+
const app = express();
4+
5+
app.use('/src', express.static(__dirname + '/src'));
6+
7+
app.get('/', (req, res) => {
8+
res.sendFile(__dirname + '/index.html', (err) = {
9+
if(err) {
10+
console.log(err);
11+
res.status(404).send(err);
12+
}
13+
});
14+
});
15+
16+
app.listen(5000, () => {
17+
console.log("sever is running.");
18+
});

‎package-lock.json

+372
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "noob-game",
3+
"version": "1.0.0",
4+
"description": "come when its completed :)",
5+
"main": "index.js",
6+
"dependencies": {
7+
"express": "^4.17.1"
8+
},
9+
"devDependencies": {},
10+
"scripts": {
11+
"test": "echo \"Error: no test specified\" && exit 1"
12+
},
13+
"repository": {
14+
"type": "git",
15+
"url": "git+https://github.com/fauwara/noob-game.git"
16+
},
17+
"author": "",
18+
"license": "ISC",
19+
"bugs": {
20+
"url": "https://github.com/fauwara/noob-game/issues"
21+
},
22+
"homepage": "https://github.com/fauwara/noob-game#readme"
23+
}

‎phaser.min.js ‎src/phaser.min.js

File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.