This project is a modern Login Page UI built with React 19 and Vite 7, developed as a job assignment. It features a clean UI, modular component structure, ESLint integration, and optimized development environment with Hot Module Replacement (HMR).
login-page/
├── Slides-photos/ # Screenshots for demo/documentation
│ └── \*.png # UI preview images
├── public/ # Public assets
│ └── vite.svg # Favicon
├── src/ # Main application source
│ ├── main.jsx # Entry point
│ └── App.jsx # Main App component (Login form lives here)
├── .gitignore
├── index.html # Root HTML
├── README.md
├── eslint.config.js # ESLint rules and setup
├── vite.config.js # Vite dev server configuration
├── package.json
├── package-lock.json
| Tool / Library | Description |
|---|---|
| React 19 | Core library for building UI |
| Vite 7 | Fast dev server and build tool |
| ESLint | Code linting (with React Hooks and React Refresh plugins) |
| @vitejs/plugin-react | Enables React Fast Refresh and JSX support |
| Globals | Shared global variables for linting browser environments |
| JSX | Modern syntax for building components |
| ECMAScript Modules | Modular code with import/export |
- ✅ Clean Login Form UI
- ✅ React 19 JSX transform
- ✅ Hot Module Replacement (HMR)
- ✅ Modern ESLint rules for better code quality
- ✅ Responsive and modular structure
- ✅ Folder for screenshots (
Slides-photos) for demo presentation
- Node.js (v18+ recommended)
- npm or yarn
# Clone this repository
git clone https://github.com/Nikhilks2002/User-Authentication.git
cd login-page
# Install dependencies
npm install
# Start development server
npm run devNow visit: http://localhost:5173
| Script | Description |
|---|---|
npm run dev |
Start Vite dev server |
npm run build |
Build production version in /dist |
npm run preview |
Preview production build locally |
npm run lint |
Run ESLint checks |
The project includes a custom ESLint setup via eslint.config.js, extending:
@eslint/js(recommended rules)eslint-plugin-react-hookseslint-plugin-react-refresh(for Vite HMR)- Ignores
dist/folder - Custom
no-unused-varsrule to ignore capitalized constants
Run lint check:
npm run lintnpm run buildYou can view the deployed login page on Netlify here:
🔗 https://68a87484bff9d40a4984bde3--user-autihication-page-react.netlify.app
npm run previewThis project is licensed under the ISC License.




