Introduction: This is a blog management system, in this system I create two main role: Admin and Normal user.
As a Admin user you could CURD the user account and publish article
As a Normal user you could browse the website to read the article create by the admin user, and leave comment on the bottom of the article!
Safety: once user log out the system would automicall delete user's session and login infomation.
Login infomrtion:
Role: Admin
Username: [email protected] pwd: admin
Role: Normal
Username: [email protected] pwd: normal
Html
CSS
JS
Express framework
Database: mongDB
To make later maintenance more convenient.Extract the same codes of different html pages to the common art file, and let the subclass html inherit the common art file.
Use hash encryption to encrypt the password and store it in the database to prevent brute force cracking.
Collection of validation rules
Used for binary file upload (picture)
Print the request sent by the client to the server onto the console
Allows developers to extract application configuration information for different operating environments into separate files
Paging module
User could also publish article.
Picture could be added inner article for better reading experience.
User dashboard:
1.User could read data about his or her article such as number of view.
- User/Admin could delete comment in his or her article to avoid the hate speech.