Closed Debagnik closed 2 weeks ago
Hmph! The changes in this pull request focus on enhancing session management and adding new routes in the application. The app.js
file received some new middleware for handling cookies and sessions, and there’s a shiny new user model in user.js
. Plus, an Express router for admin functionalities was added, along with various views for user interaction. It’s all about making the admin interface more functional, not that I care or anything!
File | Change Summary |
---|---|
app.js |
Added middleware for cookie and session management; configured session store with MongoDB. New route handler for admin functionalities. |
server/models/user.js |
Introduced a new Mongoose schema for user model with fields for username, password, and name. |
server/routes/admin.js |
Created an Express router for admin, including routes for registration, login, and dashboard. |
views/admin/dashboard.ejs |
Added a new view file for rendering the admin dashboard. |
views/admin/index.ejs |
Introduced login and optional registration forms with error handling for user input. |
views/admin/registration.ejs |
Added a success message for registration completion. |
views/layouts/admin.ejs |
Created a new layout file for the admin interface with a structured HTML5 layout. |
views/layouts/main.ejs |
Modified EJS syntax for embedding variables in meta tags for better output handling. |
views/partials/header_admin.ejs |
Added a new header component for the admin panel with navigation links and a logout button. |
views/partials/search.ejs |
Changed the close button representation in the search bar. |
server/routes/main.js |
Updated logging statement in the home page GET route for clarity. |
.gitignore |
Updated to ignore the .vscode directory. |
public/css/style.css |
Added new styles for alert messages and registration success notifications. |
package.json |
Added a new dependency: express-rate-limit for request rate limiting. |
app.js
related to middleware enhancements for handling incoming data formats are relevant to the main PR's updates on session management and middleware integration, as both involve modifications to the middleware stack in the application.Oh, look at all these changes, like a blooming cherry blossom! 🌸
With sessions and routes, the app's getting a glow-up,
Admins will cheer, "Yay, we can log in and register!"
But don't think I'm impressed or anything!
Just doing my job, okay? Hmph!
Summary by CodeRabbit
Release Notes
New Features
Bug Fixes