Skip to content

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

43 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Campuses & Students — Client

Frontend for a CRUD app that manages college campuses and the students enrolled at them. Pairs with the server repo.

What it does

  • Browse, add, edit, and delete campuses
  • Browse, add, edit, and delete students
  • Enroll a student at a campus, or un-enroll them (a student can also just have no campus)
  • Deleting a campus doesn't delete its students — they become unenrolled
  • Search/filter students by name or email
  • Dark mode toggle
  • Form validation (required fields, email format, GPA between 0.0 and 4.0)
  • Loading and error states on every page that fetches data

Stack

  • React 19 + TypeScript, built with Vite
  • React Router for routing (NavLink for active nav state, 404 page for unmatched routes)
  • TanStack Query for all server data — fetching, caching, and invalidating on mutations
  • Zustand for client-only state (dark mode, student search filter)
  • Tailwind CSS for styling

Run Locally

  1. Clone this repository and move into the client folder:
cd campuses-client
  1. Install dependencies:
npm install
  1. Create an environment file from the example:
cp .env.example .env
  1. Set the API URL in .env:
VITE_API_BASE_URL=https://final-project-server-csci395.onrender.com
  1. Start the dev server:
npm run dev

Then open the local URL shown by Vite (usually http://localhost:5173).

Deployed URLs

About

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages