Ranchi --:-- ISTRecruiter

GDG Recruitment Platform

Recruitment system for GDG on Campus HIT. Applicants apply through one form, recruiters track every application, and admins promote the people they select to team members.

Year
2025
Role
Full-stack developer
Status
Live
Stack
Next.js, NextAuth, Prisma, PostgreSQL
gdghit.site
GDG Recruitment Platform screenshot 1 of 3
Screenshot 1 of 3

Overview

Problem

GDG on Campus HIT recruits from hundreds of applicants. Applications lived in forms and spreadsheets, so keeping track of who was reviewed, shortlisted or selected took a lot of manual work.

What I built

A Next.js app with NextAuth sign-in and PostgreSQL through Prisma. Applicants and members are separate tables. Promoting an applicant checks for an existing member with the same email, then creates the member with role, department and join date in one step.

What I learned

Modelling the workflow as data: keeping applicants and members apart turned promotion into one step that can be checked. Also how NextAuth sessions and Prisma fit together inside route handlers.

What's next

Planned: stats for each recruitment round, bulk emails to applicants, and resume screening.

Features

What the product does today.

01
Application intakeCandidates apply through one form
02
Application trackingEvery candidate's progress in one view
03
Team selectionAdmins promote applicants to members
04
Sign-inNextAuth with OAuth providers

Architecture

How a request moves through the stack. Hover or tap a layer.

ClientNext.jsServerNextAuthDataPrismaPostgreSQL

Each box is one layer of the app.

Request playgroundPromote an applicant to member
  1. 01ClientAn admin clicks Promote. The page sends PUT /api/user/:id/promote with role and department.
  2. 02ServerThe Next.js route handler reads the id and the JSON body.
  3. 03DataPrisma looks up the user. If there is none, the route answers 404.
  4. 04DataPrisma checks the member table for the same email. A duplicate answers 400.
  5. 05DataPrisma creates the member with status ACTIVE and today's join date.
  6. 06ClientThe route answers 200 with the new member.

Traced from src/app/api/user/[id]/promote/route.ts ↗

Live metrics

Pulled from GitHub, a request to the live site and Google Lighthouse. Refreshed automatically.

Repositorygdg-project ↗TypeScript
Last push22 months ago7 Feb 2025
Created29 Nov 2024
Forks · stars6 · 0
Live siteNo responsegdghit.site
Lighthouse · mobile

Being measured now. Scores appear on the next visit.

Code

Excerpts from this project's repo, with notes.

route.tsgdg-project › src › app › api › user › [id] › promote › route.ts
8export async function PUT(req: NextRequest, context: Context) {9  try {10    const params = await context.params;11    const userId = params.id;12    const { role, department } = await req.json();13 14    const existingUser = await prisma.user.findUnique({15      where: { id: userId },16    });17 18    if (!existingUser) {19      return NextResponse.json({ error: "User not found" }, { status: 404 });20    }21 22    if (existingUser.email) {23      const existingMember = await prisma.member.findUnique({24        where: { email: existingUser.email },25      });26 27      if (existingMember) {28        return NextResponse.json(29          { error: "Member already exists with this email" },30          { status: 400 }31        );32      }33    }34 35    // Data is stored in the member table36    const newMember = await prisma.member.create({37      data: {38        name: existingUser.name || "",39        email: existingUser.email || "",40        role: role,41        department: department,42        status: "ACTIVE",43        joinDate: new Date(),44      },45    });
TypeScriptLn 8, Col 1UTF-83 notes

Links

See it running or read the code.

Next projectFinAI (Hackfest 2025, IIT Dhanbad)Portfolio tracker with an ML risk model, built in 36 hours at Hackfest 2025, IIT Dhanbad. It prices holdings live from Yahoo Finance and gives each stock a risk score.