Frontend aplikasi StunGuard, sebuah platform keamanan digital berbasis web yang dikembangkan menggunakan React, TypeScript, dan Vite. Aplikasi ini berfungsi sebagai antarmuka pengguna untuk berinteraksi dengan layanan backend StunGuard, seperti autentikasi, manajemen pengguna, serta fitur-fitur keamanan lainnya.
- React 19
- TypeScript
- Vite
- React Router DOM
- Tailwind CSS
- shadcn/ui
- Axios
- ESLint
web/
├── public/
├── src/
│ ├── assets/ # Images, icons, fonts
│ ├── components/ # Reusable UI components
│ ├── hooks/ # Custom React hooks
│ ├── layouts/ # Application layouts
│ ├── lib/ # Utility functions
│ ├── pages/ # Application pages
│ ├── routes/ # Routing configuration
│ ├── services/ # API communication
│ ├── types/ # TypeScript types/interfaces
│ ├── App.tsx
│ └── main.tsx
├── package.json
├── vite.config.ts
└── README.md
git clone https://github.com/your-username/stunguard.gitcd stunguard/webnpm installnpm run devThe application will be available at:
http://localhost:5173
npm run devnpm run buildnpm run previewnpm run lintCreate a .env file in the project root.
VITE_API_URL=http://localhost:8080/apiExample usage:
const API_URL = import.meta.env.VITE_API_URL;This frontend communicates with the StunGuard Backend API.
Default backend address:
http://localhost:8080
- User Authentication
- JWT-based Authorization
- Responsive User Interface
- Modern Component Library
- Secure API Integration
- Type-safe Development
- Fast Development Experience with Vite
npm run buildGenerated files will be located in:
dist/
- Use TypeScript for all components.
- Prefer reusable UI components.
- Keep business logic inside hooks or services.
- Separate API requests from UI.
- Follow ESLint rules.
- Use environment variables for configuration.
This project is licensed under the MIT License.
Developed with ❤️ by the StunGuard Team.