A Next.js application for managing footballer career data with Django backend integration.
- 🔐 Authentication - Secure login with Django backend
- 🔍 Player Search - Search and display footballer career information
- ⚙️ Configuration - Player settings and deployment configuration
- 🏢 Admin Integration - Direct links to Django admin for data management
- 🔗 N8N Integration - Webhook integration for data processing.
- Frontend: Next.js 14, TypeScript, Tailwind CSS, shadcn/ui
- Backend: Django REST API
- Deployment: Vercel
- Automation: N8N workflows
- Node.js 18+
- npm or yarn
- Access to Django backend API
-
Clone the repository: ```bash git clone https://github.com/YOUR_USERNAME/YOUR_REPO_NAME.git cd YOUR_REPO_NAME ```
-
Install dependencies: ```bash npm install ```
-
Create environment variables: ```bash cp .env.example .env.local ```
-
Update
.env.localwith your configuration: ```env NEXT_PUBLIC_API_BASE_URL=https://api.extratime.world NEXT_PUBLIC_N8N_WEBHOOK_URL=https://n8n.extratime.world/webhook/footballer-career NEXT_PUBLIC_ADMIN_BASE_URL=https://api.extratime.world/admin/ ``` -
Run the development server: ```bash npm run dev ```
-
Open http://localhost:3000 in your browser.
| Variable | Description | Example |
|---|---|---|
NEXT_PUBLIC_API_BASE_URL |
Django API base URL | https://api.extratime.world |
NEXT_PUBLIC_N8N_WEBHOOK_URL |
N8N webhook endpoint | https://n8n.extratime.world/webhook/footballer-career |
NEXT_PUBLIC_ADMIN_BASE_URL |
Django admin base URL | https://api.extratime.world/admin/ |
This project is automatically deployed to Vercel when changes are pushed to the main branch.
```bash npm run build vercel --prod ```
``` ├── app/ # Next.js app directory │ ├── api/ # API routes │ ├── globals.css # Global styles │ ├── layout.tsx # Root layout │ └── page.tsx # Main page ├── components/ # React components │ ├── ui/ # shadcn/ui components │ ├── login-form.tsx # Authentication form │ └── user-menu.tsx # User menu component ├── lib/ # Utility libraries │ ├── auth.ts # Authentication context │ ├── config.ts # Configuration management │ └── utils.ts # Utility functions ├── types/ # TypeScript type definitions │ ├── auth.ts # Authentication types │ └── player.ts # Player data types └── public/ # Static assets ```
- Create a feature branch:
git checkout -b feature/your-feature-name - Make your changes and commit:
git commit -m "Add your feature" - Push to the branch:
git push origin feature/your-feature-name - Create a Pull Request
Private - All rights reserved. ```
Add a proper .gitignore: