Thank you for your interest in contributing to CampusSync! To maintain high code quality and consistency, we follow these guidelines.
-
Repository Structure:
backend/: Node.js + Express server and AI configuration.frontend/public/: Static frontend assets and HTML views.tests/: Automated testing suite.
-
Naming Conventions:
- Use
camelCasefor variable and function names. - Use
kebab-casefor directory and file names (except for utility classes).
- Use
-
Code Standards:
- Document all public functions with JSDoc.
- Keep logic modular: separate AI prompt engineering from API route handling.
- Use structured logging (
info,success,error).
-
Testing:
- Run tests using
npm testbefore pushing any changes. - Maintain a high level of code coverage for core AI logic.
- Run tests using
Ensure you have a .env file in the root directory with the following variables:
OPENAI_API_KEY=your_key_here
PORT=3000main: Production-ready code.feature/*: New features and enhancements.bugfix/*: Critical bug fixes.
Built with ❤️ for the university community.