How srish-ty/project-dates works
Project Overview and Purpose
• Recognize that this repository is the backend API for a campus guide application (Project Dates) designed by DSC NIT Rourkela.
• The backend focuses on managing users, events, team details, and other campus-related functionalities while interacting with a mobile application (Avenue).
Main Components
• API Interface Layers:
• GraphQL/API (Apollo): Under the api/src/apollo folder, you have resolvers, queries, mutations, and type definitions for various domains such as DeveloperInfo, Event, Institute, Location, Org, etc.
• REST API: Under the api/src/rest folder, you have controllers, routes, and models handling REST endpoints (like auth controllers, payment integrations with Instamojo, health checks, etc.).
• Configuration and Infrastructure:
• Configuration modules in api/src/config for integrating with services like Firebase, Mongoose (MongoDB connection), Nexus setup for GraphQL schema, and winston for logging.
• Environment configuration (using .env files and constants under api/src/constants).
• Database and Persistence:
• Mongoose configuration files indicate the use of MongoDB.
• There is also a prisma schema (though its role might be supplementary) representing data modeling.
• Helpers, Utilities, and Error Handling:
• Helpers in api/src/helpers manage authentication (permission checks, verification), and there are modules for custom error handling.
• Containerization & CI/CD:
• Dockerfile and docker-compose configuration are present, indicating deployment via containerized environments.
• Reference to GitHub workflows (build, deploy, lint) shows continuous integration efforts.
• External Services:
• Integration with third-party services like Instamojo for payment processing (from the instamojo controller in the REST APIs).
• Firebase configuration likely supports parts of the auth or push notifications.