Skip to content

Conversation

@mukeshdhadhariya
Copy link
Contributor

@mukeshdhadhariya mukeshdhadhariya commented Oct 12, 2025

This PR sets up the initial backend structure for the project:

✅ Express server configured with middleware (CORS, cookie-parser)
✅ MongoDB connection using Mongoose
✅ Created User model with password hashing and role reference
✅ Created Role model with permission references
✅ Created Permission model
✅ Implemented basic role-permission structure for RBAC
✅ Environment configuration support via .env
✅ Updated .gitignore to exclude node_modules, environment files, and other unnecessary files

This provides the foundation for authentication, role management, and permission-based access control in the application, while keeping sensitive and unnecessary files out of version control.

issue #3 #6 #7 solved

@mukeshdhadhariya
Copy link
Contributor Author

Please review and merge the changes

@mukeshdhadhariya
Copy link
Contributor Author

There is no conflict

@PerHac13
Copy link
Contributor

Thank you for your contribution!

We're hosting Opcode 2025, an open-source fest exclusively for college students, and we would love for you to be a part of it.

Website & Registration: opcode.gymkhana.iiitbh.ac.in

Join the Community: Be sure to join our Discord server to connect with other participants and stay up-to-date!

Important: To ensure your work is officially recognized on our fest leaderboard, we merge pull requests after you have registered. Please reply to this comment to let us know if you have registered or if you are not eligible to participate.

And great news – your contributions to this repository will also count towards Hacktoberfest!

Looking forward to seeing you at the fest!

@PerHac13 PerHac13 changed the title Setup Express Backend with MongoDB, User, Role, Permission Models & U… feat: Setup Express Backend with MongoDB, User, Role, Permission Models & U… Oct 12, 2025
… models & update .gitignore

-- INSERT --
feat(backend): setup Express with MongoDB, User, Role, and Permission models & update .gitignore

feat(backend): setup Express with MongoDB, User, Role, and Permission models & update .gitignore
@mukeshdhadhariya mukeshdhadhariya changed the title feat: Setup Express Backend with MongoDB, User, Role, Permission Models & U… feat(backend): Setup Express Backend with MongoDB, User, Role, Permission Models & U… Oct 12, 2025
@PerHac13 PerHac13 merged commit 2729bfc into OPCODE-Open-Spring-Fest:main Oct 12, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants