How tanmaypatil/leave-application works
• Frontend Component: Although there is no dedicated “frontend” directory, the README highlights Vue, so include a “Vue.js Frontend” component. Note that client.js might be a supportive client file for interfacing with backend services.
• Backend Component (GraphQL Engine): Represent the Hasura GraphQL engine. This module is central and communicates with the frontend via API calls.
• Database: Include the Postgres database that is managed via Hasura. Emphasize that the schema is managed by a series of migration files (present in the many migration directories) and seed scripts, which define tables for employees, leave applications, managers, holidays, entities, and so on.
• Migration & Seeding System: Separate or sub-component that handles database schema migrations (using Hasura’s migration files) and seeds initial data.
• CI/CD Pipeline: Illustrate the GitHub Actions setup (.github/workflows/main.yaml and action.yaml) which automate testing and deployment.
• Testing Suite: Represent the “test” directory which holds the GraphQL test cases and scripts (test/run_tests.js, test/util.js, etc.) to indicate a solid test strategy.
Relationships and Interactions
• GraphQL Engine to the “Postgres Database” which is managed by the migration system.
• Demonstrate that Docker (or container orchestration) encapsulates both the backend service and the database.
• That the CI/CD pipeline (GitHub Actions) triggers tests, builds the Docker images, and deploys the containerized services.
Architectural Patterns & Technologies
• Microservice or Containerized Architecture: Emphasize the containerization of components (Hasura, Postgres, and possibly the Vue frontend if it is containerized separately) using Docker.
• Declarative Migrations/Version Control: Show that the database migrations in leave-server-app/leave-system (organized chronologically by timestamp folders) are a central part of the application’s design.
• CI/CD Integration: Stress the role of GitHub Actions in ensuring a smooth integration and continuous delivery pipeline.
• GraphQL API: Clearly label that communications between frontend and backend happen through a standardized GraphQL API endpoint provided by Hasura.