Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2019-1-OpenSourceSW
/
StarCraft2 Build Recommendation
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
임에딘
2018-12-11 11:08:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
95c0221e88fc34c48af544df8f3615bef1991301
95c0221e
1 parent
4567247e
add code to upload images
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
app.js
index.html
app.js
View file @
95c0221
var
http
=
require
(
'http'
);
var
fs
=
require
(
'fs'
);
var
express
=
require
(
'express'
);
var
app
=
express
();
app
.
get
(
'/'
,
function
(
req
,
res
){
fs
.
readFile
(
'index.html'
,
function
(
err
,
data
){
res
.
writeHead
(
200
,{
'Content-Type'
:
'text/html'
});
res
.
end
(
data
);
});
});
app
.
get
(
'/imgs'
,
function
(
req
,
res
){
fs
.
readFile
(
'logoIMG.jpg'
,
function
(
err
,
data
){
res
.
writeHead
(
200
,{
'Content-Type'
:
'text/html'
});
res
.
end
(
data
);
});
});
app
.
listen
(
8080
,
function
(){
console
.
log
(
'Server Start.'
);
})
/*
http.createServer(function (req, res) {
fs.readFile('index.html', function(err, data) {
res.writeHead(200, {'Content-Type': 'text/html'});
...
...
@@ -7,3 +28,4 @@ http.createServer(function (req, res) {
res.end();
});
}).listen(8080);
*/
...
...
index.html
View file @
95c0221
...
...
@@ -10,7 +10,7 @@
<body>
<p
stype=
"fond-family:verdana;"
>
StarCraft 2 Build Recommendation Project
</p>
<img
src=
"
logoIMG.jpg
"
alt=
"StarCraft2 LOGO image"
>
<img
src=
"
/imgs
"
alt=
"StarCraft2 LOGO image"
>
<br>
<br>
<div
class=
"col-md-3"
>
...
...
Please
register
or
login
to post a comment