Newt Tracker is a professional, high-performance field operations tracking system built for speed, transparency, and data-driven decision making. Designed for field teams and administrators, it provides a seamless experience for logging activities, tracking sales, and analyzing team performance with real-time visualization.
This version introduces a complete suite of field operations tools:
- 📍 Smart Geo-Logging: Map-based verification for every meeting and sale.
- 📸 Multi-Photo Evidence: Upload site photos directly to Cloudinary via the app.
- 📊 Advanced Admin Analytics: Deep-dive into B2C vs B2B revenue, state-wise activity, and distributor rankings.
- 🛣️ Daily Activity Feeds: Real-time stream of field events across the country.
- Log Meetings: Quickly report One-on-One or Group meetings with GPS location and photo proof.
- Sales Tracker: Monitor B2C and B2B sales progress with auto-calculated totals.
- Sample Management: Log product trials and distributions to potential customers.
- Performance Dashboard: Personalized charts showing weekly sales and meeting trends.
- Central Intelligence: Unified dashboard showing total revenue, meetings, and activity logs.
- Geographical Distribution: View team presence across different states and districts.
- Rankings: Monthly leaderboards for top-performing distributors.
- User Management: Manage the entire team hierarchy from a single secure interface.
| Frontend | Backend | Cloud & Database |
|---|---|---|
| Next.js 14 (App Router) | Node.js & Express | PostgreSQL (Supabase) |
| Tailwind CSS | JWT Authentication | Cloudinary (Photo Storage) |
| Recharts (Data Viz) | Multer & Sharp | Google Maps API |
| Heroicons/Lucide | CORS & Security | Leaflet (Optional Fallback) |
├── backend/
│ ├── config/ # DB & Cloudinary Configuration
│ ├── controllers/ # API Business Logic (Dashboards, Auth, Meetings)
│ ├── middleware/ # Auth Verification & Image Processing
│ ├── routes/ # API Route Definitions
│ └── server.js # Express Entry Point
├── frontend/
│ ├── app/ # Next.js Pages (Admin/Distributor workflows)
│ ├── components/ # Reusable UI (Cards, MapPicker, PhotoUpload)
│ ├── lib/ # API Client & Auth Utilities
│ └── public/ # Static Assets
└── database-full-schema.sql # Consolidate SQL Schema Reference
- Create a project on Supabase.
- Run
database-full-schema.sqlin the SQL Editor to set up all tables and optimizations. - (Optional) Run
dummy-data.sqlto populate the dashboard for testing.
cd backend
npm install
cp .env.example .envAdd your credentials to .env:
DATABASE_URL,JWT_SECRET,CLOUDINARY_CLOUD_NAME,CLOUDINARY_API_KEY,CLOUDINARY_API_SECRET.
npm startcd frontend
npm install
cp .env.example .envEnsure NEXT_PUBLIC_API_URL and NEXT_PUBLIC_GOOGLE_MAPS_API_KEY are set.
npm run dev -- -p 3001Note: Please use port 3001 as required by Google Maps API restrictions.
This project was developed for a high-intensity hackathon. For queries or contributions, feel free to open a Pull Request.
Built with Precision for Field Operations Efficiency.