-
Notifications
You must be signed in to change notification settings - Fork 0
/
READ ME.txt
43 lines (33 loc) · 1.44 KB
/
READ ME.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
*** First of all use-> npm install
in two directories and download all packages in package.json
* Use sql file to create the Database.
* Start Xampp and run apache and mysql servers
* Press config infront of mysql and get mysql interface
* Open sql folder with VS Code
* run the server on terminal
(type node index.js)
(or you can type nodemon index.js)(if you have nodemon)
* U should see Server Started on port 3000 on terminal
a) comment database:'z' on line 9 and type and enter below in address bar
http://127.0.0.1:3000/createdb
U would see a Database Created message onn browser.
Check mysql interface and confirm database is created.
b) uncomment above commented line and type and enter below in address bar
http://127.0.0.1:3000/student
U would see a Student Table Created message onn browser.
Check mysql interface and confirm.
c)type and enter below in address bar
http://127.0.0.1:3000/staff
U would see a Staff Table Created message onn browser.
Check mysql interface and confirm.
d)type and enter below in address bar
http://127.0.0.1:3000/chat
U would see a Chat Table Created message onn browser.
Check mysql interface and confirm.
*Now u can check the app.
* stop this running server(by pressing Ctrl+c or closing VS CODe)
* open Enjoy JS with VS Code
* run server (node app.js) (or nodemon app.js)
* type and enter below in address bar
http://127.0.0.1:3000/home
* Now you can use app.