How arjuniyyappan/techzconnect works
Project type and purpose
• This is a full-stack HR Consultancy Web App (“TechzConnect”).
• Frontend is a React single-page application for public pages (jobs, blogs, services) and an admin dashboard.
• Backend is a Node.js/Express REST API that handles authentication, job postings, blog content, and user data.
• PostgreSQL is the primary persistent store.
File structure
Backend directory:
• config/db.js – Postgres connection setup
• middleWare/authMiddleware.js – JWT or session check
• controllers/*Controller.js – business logic for auth, jobs, blogs
• models/*.js – ORM/schema definitions for User and Job
• routes/*.js – Express routers for auth, jobs, blogs, admin
• server.js / index.js – API entry point
Frontend directory:
• src/api/*.js – API-wrapper modules (jobsApi, newsApi)
• src/components – reusable UI components (forms, cards, carousel)
• src/pages – route-mapped pages, including public pages and admin subfolder
• src/components/PrivateRoute.jsx – route guard for protected admin routes
• public/index.html + .env – app metadata and client configuration
README
• Confirms tech stack: React.js, Node.js/Express, PostgreSQL
• Focus is on full-stack HR consultancy use cases (job listings, applications, blogs, admin management)
a. Main components
• Browser / Client (React SPA)
• API Server (Node.js + Express)
• Database (PostgreSQL)
• External Services (e.g., news API)
• (Optional) Authentication Provider (JWT or OAuth flow)
b. Relationships and data flows
• Client → HTTP over REST → API Server
• API Server → SQL queries → PostgreSQL
• API Server ↔ External news API (for news feed)
• API Server uses auth middleware for protected routes
c. Architectural patterns & design principles
• Backend: MVC-style layering (routes → controllers → models)
• RESTful API design, separation of concerns
• Frontend: Component-based architecture, client-side routing
• Role-based access control via PrivateRoute and auth middleware
• Environment-driven configuration (dotenv in both front & back)
d. Key technologies
• React, React Router, Axios/fetch (frontend)
• Express, middleware, JWT/auth libs (backend)
• pg or an ORM (models)
• CSS modules or global CSS for styling