File tree Expand file tree Collapse file tree 1 file changed +81
-1
lines changed Expand file tree Collapse file tree 1 file changed +81
-1
lines changed Original file line number Diff line number Diff line change 1- # MERN-MVC-GEN
1+ # MERN-MVC-GEN
2+
3+ - A helper toolkit for fast MERN MVC development. Easily generate controllers and integrate authentication functions like signup and signin.
4+
5+ ## 📦 Installation
6+
7+ ### Install via npm:
8+
9+ ``` bash
10+
11+ npm install merngen
12+
13+ ```
14+
15+ ## IMPORTANT
16+
17+ 1 . in Signup function required feilds are unique fields in Your Model
18+ 2 . You must need to create frontend veriables as same as in Your Model
19+ (if not got errors)
20+
21+
22+ ## 🛠️ Features
23+
24+ - Lightweight and beginner-friendly
25+ - Designed for MVC pattern in MERN applications
26+
27+ ## Function
28+
29+ ### SignUp
30+
31+ - Password Hash using ` bcrypt `
32+
33+ ### SignIn
34+
35+ - Check Password using ` bcrypt `
36+ - build-in authentication using ` jwt ` (` jsonwebtokens ` )
37+
38+
39+ ## Indetails Functions
40+
41+ ### Signup
42+
43+ - Automatically extracts required fields from your Mongoose model
44+ - Checks for existing unique values
45+ - Validates request body
46+ - Hashes password before saving
47+
48+ ### Signin
49+
50+ - Verifies email and password
51+ - Returns a JWT token with user ID and role if authentication is successful
52+
53+
54+ ## 🔐 Security Practices
55+
56+ - Passwords hashed using bcrypt
57+ - Tokens signed with jsonwebtoken and environment-based secret keys
58+ - Validates required fields and handles duplicate entries
59+
60+
61+ ## Versioning
62+
63+ ### 1.0.0 - 27 March 2025
64+
65+ - Initial release
66+ - Develop SignUp and Sigin Functions
67+
68+ ## 🤝 Contributing
69+
70+ - Contributions are welcome! Please feel free to open issues or submit pull requests to improve this package.
71+
72+
73+ ## 👨💻 Author
74+
75+ Name: Jehan Weerasuriya
76+
77+ GitHub: [ BackendExpert] ( https://github.com/BackendExpert )
78+
79+ NPM: [ JehanKandy] ( https://www.npmjs.com/~jehankandy )
80+
81+ Portfolio: [ JehanWeerasuriya] ( https://jehanweerasuriya.vercel.app/ )
You can’t perform that action at this time.
0 commit comments