-
Notifications
You must be signed in to change notification settings - Fork 0
Priyank-cyber/Course
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
(1) Install all dependencies and packages npm install express mysql bcrypt body-parser express-session ejs nodemon express-validator (2) Arrange the files and folders as per the given folder structure Root Folders are config, node_modules, partials, public, views Root files are app.js, package-lock.json, package.json, readme.txt Now config has db.js All ejs files are in views folder except header and footer as they will be in partials public has 3 folders name img, js has .js files, css has .css files (3) Open Xampp and start apache and mysql server. Also click admin on apache which will open phpmyadmin. (4) Import course.sql file to phpmyadmin and open the database (5) In visual studio code open terminal and run command "nodemon app.js" Preventing Sql Injection : - I have used parameterized query in each queries by that the attacker will not be able to manipulate sql queries. Preventing Command Injection : - I have avoid using untrusted data which means whichever input is added by user is sanitized and validated and then only it is sent to the database Adding login attempts functionality : - Only 3 attempts are allowed and after 3 attempts the account will be frozen CORS : - I have added cors functionality in the cors configuration Cookie : - I have added secure and httponly functionality true for handling limited access to cookies
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published