Closed heropj closed 1 month ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
universal-box | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 13, 2024 5:13pm |
The changes introduce a full-stack authentication template using EJS and Node.js. Key components include a MongoDB connection setup, user management with signup, login, and password reset functionalities, as well as JWT authentication and admin authorization middleware. The project structure includes routes, controllers, models, views, and services, all designed to facilitate user interactions and manage authentication processes.
File Path | Change Summary |
---|---|
template/FullStack/EJS(SSR)+Nodejs(Backend)/configs/connectdb.js |
New file with connectdb function for MongoDB connection using Mongoose. |
template/FullStack/EJS(SSR)+Nodejs(Backend)/controllers/userController.js |
New file with functions for user signup, login, and password reset. |
`template/FullStack/EJS(SSR)+Nodejs(Backend)/index.js | New file establishing an Express.js server with middleware and routes. |
template/FullStack/EJS(SSR)+Nodejs(Backend)/middlewares/adminAuthrization.js |
New middleware function for admin authorization. |
`template/FullStack/EJS(SSR)+Nodejs(Backend)/middlewares/jwtAuth.js | New file with middleware functions for JWT authentication. |
`template/FullStack/EJS(SSR)+Nodejs(Backend)/models/userModel.js | New Mongoose schema for user management. |
`template/FullStack/EJS(SSR)+Nodejs(Backend)/package.json | New file specifying metadata and dependencies for the project. |
`template/FullStack/EJS(SSR)+Nodejs(Backend)/readme.md | New documentation outlining features and instructions for the template. |
`template/FullStack/EJS(SSR)+Nodejs(Backend)/routes/userRoutes.js | New file with Express.js routes for user-related functionalities. |
template/FullStack/EJS(SSR)+Nodejs(Backend)/services/forgotmail.js | New function for sending emails using nodemailer`. |
|
`template/FullStack/EJS(SSR)+Nodejs(Backend)/views/*.ejs | Multiple new EJS template files for various user interfaces (admin, login, signup, etc.). |
Objective | Addressed | Explanation |
---|---|---|
Include user authentication features (signup, login, password reset) (#132) | ✅ | |
Implement role-based authorization (#132) | ✅ | |
Use EJS for server-side rendering (#132) | ✅ | |
Establish a MongoDB connection (#132) | ✅ |
🐇 In a world of code where rabbits play,
New templates bloom, brightening the day.
With routes and views, and auth in sight,
A full-stack dream, oh what a delight!
Hop along, dear friends, let’s code and cheer,
For a blogging app, the time is near! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Description
Added a template for authentication and authorization made using EJS, Node.js
Fixes #132
Type of Change
Please delete options that are not relevant.
Checklist
Summary by CodeRabbit
Release Notes
New Features
Documentation
Chores
package.json
file to manage project dependencies.