This project is an employee portal to manage the new-employee onboarding process. Employees can update personal information, upload required identification and work-authorization documents, and track housing assignments.
- Frontend: React (Vite)
- State: @reduxjs/toolkit, react-redux
- HTTP: axios
- UI: MUI (Material UI) and Tailwind CSS
- Build / Dev: Vite
Install
npm installRun development server
npm run devBuild for production
npm run buildPreview production build
npm run previewLinting
npm run lint- API base URL and any auth tokens should be configured using environment variables (e.g., a
.envfile) read by the app where appropriate. - The axios interceptor in
src/api/auth.interceptor.jscentralizes auth header handling and token refresh logic.
- Create a feature branch.
- Implement components inside
src/componentsand pages insrc/pages. - Manage shared state in
src/storeusing slices and thunks. - Add API calls under
src/apiand useuseAxiosto consume them. - Ensure protected routes use
AuthGuard.jsx.