This project demonstrates a web application with the MEBN (MongoDB, Express.js, Bootstrap, Node.js) stack. The website includes various functionalities, and this readme provides an overview of the protocols and interactions involved.
The SimpleAuth website provides a user interface for administrators and regular users. It involves interactions using the GET and POST protocols, allowing for seamless navigation and data processing.
- Redirects to
/admin.
- Admin interacts with the UI.
- Logs in with admin credentials.
- Successfully logs in.
- Gets redirected to the
/processAdminFormpage.
- Admin interacts with the UI.
- Creates a User and sends a request to the server.
- Express Server processes and sends a request to MongoDB API.
- MongoDB API accesses the database and sends back a response.
- The express server processes the response and sends back a response with Pug as a rendering engine.
- User Enters login credentials
- Redirects to
/processUserForm
- View your details as a user.
- Upload your picture. (Future Functionality).
- Redirects to
/admin.
- Validates admin login form data from
/adminand redirects to/manageUsersif authorized - Otherwise, it redirects to the
/adminlogin again.
- Validates user login form data from
/userand redirects to/userHomeif authorized - Otherwise, it redirects to the
/userlogin again.