Skip to content
This repository has been archived by the owner on Aug 19, 2021. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kcgidw committed Nov 11, 2018
0 parents commit a1c0ae7
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
*.log
.vscode/
.env
11 changes: 11 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
const express = require('express');
const http = require('http');

const app = express();
const httpServer = new http.Server(app);
const port = process.env.PORT || 3000;

app.use(express.static('./public'));
httpServer.listen(port, function() {
console.log(`httpServer listening on port ${port}`);
});
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "fake-artist-online",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"dotenv": "^6.0.0",
"express": "^4.16.3",
"lodash": "^4.17.10",
"socket.io": "^2.1.1"
},
"devDependencies": {}
}
12 changes: 12 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<html>
<header>
<title>Fake Artist Online</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style/style.css" />
</header>
<body>
Hi
<script src="https://cdnjs.cloudflare.com/ajax/libs/socket.io/2.1.1/socket.io.js" crossorigin></script>
<script src="./js/index.js" crossorigin></script>
</body>
</html>
Empty file added public/js/index.js
Empty file.
5 changes: 5 additions & 0 deletions public/style/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
html, body {
background-color: #eee;
color: #333;
margin: 0;
}

0 comments on commit a1c0ae7

Please sign in to comment.