-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from GSG-K3/html
Server and Database files
- Loading branch information
Showing
7 changed files
with
101 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
RTCPeerConnection.query(sql, (err, rows, fields) => { | ||
if (err) console.log(err); | ||
else console.log(rows); | ||
response.send(rows); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,41 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge" /> | ||
<title>Student Managment System</title> | ||
<link rel="stylesheet" href="./style.css" /> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | ||
<title>Document</title> | ||
<link rel="stylesheet" href="./style.css"> | ||
</head> | ||
|
||
<body> | ||
<body> | ||
<section class="topsection"> | ||
<img src="./imges/school.png" alt="school picture" /> | ||
<h1>Student Managment System</h1> | ||
<img src="./imges/school.png" alt="school picture" /> | ||
<h1>Student Managment System</h1> | ||
</section> | ||
|
||
<section class="student"> | ||
<form class="student_form"> | ||
<div> | ||
<input value="Type your ID" type="search" class="head_search"> | ||
</div> | ||
<div> | ||
<input value="submit" type="button" class="head_button"> | ||
</div> | ||
</form> | ||
<div class="student_profolio"> | ||
<img src="team-01.png" class="student_img"> | ||
<div class="student_profolio_name"> | ||
<h2>Ali</h2> | ||
<h3>ID:134223</h3> | ||
</div> | ||
<form class="student_form"> | ||
<div> | ||
<input value="Type your ID" type="search" class="head_search" /> | ||
</div> | ||
<div class="student_info"> | ||
<h3>location:</h3> | ||
<h3>birthday:</h3> | ||
<h3>sex:</h3> | ||
<h3>phone:</h3> | ||
|
||
|
||
<div> | ||
<input value="submit" type="button" class="head_button" /> | ||
</div> | ||
</form> | ||
<div class="student_profolio"> | ||
<img src="./imges/student.png" class="student_img" /> | ||
<div class="student_profolio_name"> | ||
<h2>Ali</h2> | ||
<h3>ID:134223</h3> | ||
</div> | ||
</div> | ||
<div class="student_info"> | ||
<h3>location:</h3> | ||
<h3>birthday:</h3> | ||
<h3>sex:</h3> | ||
<h3>phone:</h3> | ||
</div> | ||
</section> | ||
</body> | ||
|
||
</html> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const express = require("express"); | ||
const path = require("path"); | ||
const app = express(); | ||
const request = require("request"); | ||
|
||
app.use(express.static(path.join(__dirname, "..", "public"))); | ||
app.set("port", process.env.PORT || 5000); | ||
app.get("/home", (request, response) => { | ||
getdata(); | ||
}); | ||
app.listen(app.get("port"), () => { | ||
console.log("The server is working ...."); | ||
}); | ||
|
||
module.exports = app; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const getData = require("../../database/queries/getData"); | ||
const postData = require("../../database/queries/postData"); |