Ranchi --:-- ISTRecruiter
Work/Campus Connect← SkillSync←→Eshop →

Campus Connect

Task board for college students. Post a task, pick one up, and build a reputation as tasks get done. Changes appear for everyone in real time.

Year
2024
Role
Full-stack developer
Status
Live
Stack
React, Vite, Firebase, Tailwind CSS, Framer Motion

Overview

Problem

Students who need help with an assignment, an event or a project ask in scattered group chats, and nobody can see who took what or who usually delivers.

What I built

A React and Vite app on Firebase. Firebase Auth handles sign-up, and Firestore stores tasks and profiles, so a change reaches every open screen at once. Each profile keeps a helpfulnessScore and a tasksCompleted count that grow as tasks are finished.

What I learned

Shaping data around Firestore's real-time listeners, and turning Firebase error codes into messages people understand.

What's next

Planned: a mobile app and calendar sync for task deadlines.

Features

What the product does today.

01
Sign-in and rolesFirebase Auth with member profiles
02
Real-time tasksUpdates reach everyone instantly
03
NotificationsKnow when something changes
04
Reputation systemhelpfulnessScore grows with finished tasks

Architecture

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

ClientReactTailwind CSSFramer MotionDataFirebaseServicesVite

Each box is one layer of the app.

Request playgroundSign up
  1. 01ClientThe sign-up form submits email, password and profile details.
  2. 02DataFirebase Auth creates the account.
  3. 03DataFirestore stores the profile under the same uid, with helpfulnessScore and tasksCompleted at 0.
  4. 04ClientA success toast appears, or a readable error mapped from the Firebase code.

Traced from src/contexts/AuthContext.jsx ↗

Live metrics

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

RepositoryCampus-Connect ↗JavaScript
Last push2 years ago15 Nov 2024
Created5 Nov 2024
Forks · stars0 · 0
Live siteUp · HTTP 200Loaded in 0.44 s
Lighthouse · mobile

Being measured now. Scores appear on the next visit.

Code

Excerpts from this project's repo, with notes.

AuthContext.jsxCampus-Connect › src › contexts › AuthContext.jsx
22  const signup = async (email, password, userData) => {23    try {24      setAuthError(null);25      const result = await createUserWithEmailAndPassword(auth, email, password);26      27      // Create user document in Firestore28      await setDoc(doc(db, 'users', result.user.uid), {29        ...userData,30        email,31        helpfulnessScore: 0,32        tasksCompleted: 0,33        createdAt: new Date().toISOString(),34        lastLogin: new Date().toISOString()35      });36 37      toast.success('Account created successfully!');38      return { success: true, user: result.user };39    } catch (error) {40      setAuthError(error.message);41      toast.error(getFirebaseErrorMessage(error.code));42      return { success: false, error: error.message };43    }44  };
JavaScript ReactLn 22, Col 1UTF-83 notes

Links

See it running or read the code.

Next projectEshopMicroservices e-commerce backend in an Nx monorepo, in early development. An API gateway sits in front of the services, starting with authentication.