From 853971c2b4b510f44b4843451cfcf74b938c4fcc Mon Sep 17 00:00:00 2001 From: rubasider Date: Wed, 26 Feb 2020 09:05:16 +0200 Subject: [PATCH] to get the origin master --- node_modules/body-parser/package.json | 16 ++++++++------ package.json | 1 + public/index.html | 31 ++++++++++++--------------- src/app.js | 9 ++++++++ 4 files changed, 33 insertions(+), 24 deletions(-) diff --git a/node_modules/body-parser/package.json b/node_modules/body-parser/package.json index 2d2f9b7..5c7618a 100644 --- a/node_modules/body-parser/package.json +++ b/node_modules/body-parser/package.json @@ -1,27 +1,29 @@ { - "_from": "body-parser@1.19.0", + "_from": "body-parser", "_id": "body-parser@1.19.0", "_inBundle": false, "_integrity": "sha512-dhEPs72UPbDnAQJ9ZKMNTP6ptJaionhP5cBb541nXPlW60Jepo9RV/a4fX4XWW9CuFNK22krhrj1+rgzifNCsw==", "_location": "/body-parser", "_phantomChildren": {}, "_requested": { - "type": "version", + "type": "tag", "registry": true, - "raw": "body-parser@1.19.0", + "raw": "body-parser", "name": "body-parser", "escapedName": "body-parser", - "rawSpec": "1.19.0", + "rawSpec": "", "saveSpec": null, - "fetchSpec": "1.19.0" + "fetchSpec": "latest" }, "_requiredBy": [ + "#USER", + "/", "/express" ], "_resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.0.tgz", "_shasum": "96b2709e57c9c4e09a6fd66a8fd979844f69f08a", - "_spec": "body-parser@1.19.0", - "_where": "/home/kareml/Desktop/SMS/node_modules/express", + "_spec": "body-parser", + "_where": "/home/ruba/SMS", "bugs": { "url": "https://github.com/expressjs/body-parser/issues" }, diff --git a/package.json b/package.json index cd8b84e..102f774 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ }, "homepage": "https://github.com/GSG-K3/SMS#readme", "dependencies": { + "body-parser": "^1.19.0", "env2": "^2.2.2", "express": "^4.17.1", "pg": "^7.18.2" diff --git a/public/index.html b/public/index.html index 56022e6..16c5899 100644 --- a/public/index.html +++ b/public/index.html @@ -1,28 +1,25 @@ - + + - + Student Managment System - - + + + +
- school picture -

Student Managment System

+ school picture +

Student Managment System

- student picture - grades picture + student picture + grades picture
- - + + + \ No newline at end of file diff --git a/src/app.js b/src/app.js index e69de29..059f152 100644 --- a/src/app.js +++ b/src/app.js @@ -0,0 +1,9 @@ +const express = require("express") +const path = require("path") +const bodyParser = require("body-parser") +const app = express(); +app.setPort(3000) +app.use(bodyParser.json()) +app.use(bodyParser.urlencoded({ extended: false })) +app.get("/home") +app.listen(getPort()) \ No newline at end of file