A Next.js-based e-commerce platform with integrated fraud detection and DoS attack monitoring capabilities. The system includes a user-facing storefront, an admin dashboard for monitoring security metrics, and a DoS attack simulator for testing purposes.
- Product catalog display
- Shopping cart functionality
- User authentication
- Secure checkout process
- Real-time fraud detection for transactions
- DoS attack detection and monitoring
- Alert system for security incidents
- Interactive DoS attack simulator for testing
- Real-time monitoring of transactions
- Visual analytics with charts and graphs
- Fraud and DoS attack statistics
- Alert management system
- Frontend: Next.js 14, React, TypeScript
- UI Components: Tailwind CSS, shadcn/ui
- Charts: Recharts
- Database: MongoDB
- Authentication: JWT, HTTP-only cookies
- API: REST endpoints
- Node.js 18 or higher
- MongoDB instance
- npm or yarn package manager
- Clone the repository:
git clone [repository-url]
cd ecommerce-fraud-detection- Install dependencies:
npm install- Set up environment variables:
Create a
.envfile in the root directory with the following variables:
MONGODB_URI=mongodb+srv://admin:[email protected]/ccfraud
JWT_SECRET=frauddosdetectionsecretkey
NEXT_PUBLIC_API_URL=http://localhost:5001
IPINFO_TOKEN=e3fa46f1168c1b - Run the development server:
npm run devThe application will be available at http://localhost:3000
To access the admin dashboard, use the following credentials:
- URL:
/admin/login - Username:
admin - Password:
admin123
GET /api/dashboard- Get dashboard statistics and recent alerts
GET /api/alerts- Get all alertsPOST /api/alerts- Create a new alertGET /api/alerts?type=fraud- Get fraud alertsGET /api/alerts?type=dos- Get DoS alerts
POST /api/dos-alert- Create a new DoS alert- External API:
POST http://localhost:5001/dos- DoS detection endpoint
- Real-time monitoring of network traffic
- Pattern recognition for attack detection
- Automatic alert generation
- Integration with admin dashboard
- Transaction analysis
- Pattern matching
- Risk scoring
- Alert system integration
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Next.js team for the amazing framework
- shadcn/ui for beautiful UI components
- MongoDB team for the database system
- All contributors who have helped with the project