Skip to content

Commit

Permalink
8_25
Browse files Browse the repository at this point in the history
  • Loading branch information
JiWon9709 committed Aug 24, 2020
0 parents commit 4fb1279
Show file tree
Hide file tree
Showing 464 changed files with 81,092 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}\\login.js"
}
]
}
8 changes: 8 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<html>
<head>
<title>login page</title>
</head>
<body>
hello world!
</body>
</html>
23 changes: 23 additions & 0 deletions login.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
var http = require('http');
var fs = require('fs');
var url = require('url');

// 서버 생성
var app = http.createServer(function(request,response){
var _url = request.url;
var queryData = url.parse(_url, true).query;
console.log(queryData.id);
if(_url == '/'){
_url = '/index.html';
}
// fs.readFile(_url)
// if(_url == '/favicon.ico'){
// return response.writeHead(404);
// }
response.writeHead(200, {'Content-Type' : 'text/plain'});
response.end("hello world\n");

});
app.listen(3000);

console.log("server running!")
22 changes: 22 additions & 0 deletions mysql.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
var mysql = require('mysql');

var connection = mysql.createConnection(
{
host : 'localhost',
user : 'root',
password : '111111',
database : 'test'
//port : '3306'
}
);

connection.connect();

connection.query('SELECT * FROM user', function (error, results, fields) {
if (error) {
console.log(error);
}
console.log(results);
});

connection.end();
15 changes: 15 additions & 0 deletions node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions node_modules/.bin/mime.cmd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions node_modules/.bin/mime.ps1

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

236 changes: 236 additions & 0 deletions node_modules/accepts/HISTORY.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions node_modules/accepts/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 4fb1279

Please sign in to comment.