-
can pull main branch for just frontend
-
All html files are in views folder with extension .ejs for nodejs
-
put all corresponding css and frontend js in public folder
-
for backend, implement in server.js file in root folder
-
make sure to have mysql server running before turning on server
-
download a mysql server app (I use Xampp)
-
download nodejs
-
in cmd on folder path type "npm init -y", then type "npm i bcrypt ejs express express-flash express-session method-override mysql passport passport-local" to install all dependencies
-
To run server type npm run start
-
password for both accounts is "123"
-
db name "cs102"
-
table name "user"
-
data in the db currently:-
id | name | hashedpassword | type | subjects | batch | branch | |
---|---|---|---|---|---|---|---|
1 | student1 | [email protected] | $2b$05$fz0jr3ZC8/qgNj1RogjkEO7ecvjPZBCkiqpQ.YtmsB4kPHnUZizYu | student | MA102 CS102 EE101 | 2023 | CSE |
2 | student2 | [email protected] | $2b$05$fz0jr3ZC8/qgNj1RogjkEO7ecvjPZBCkiqpQ.YtmsB4kPHnUZizYu | student | MA102 NO101 CS102 | 2024 | EE |