trackforge-saas

TrackForge - Open Source Traffic Tracker

TrackForge is a production-grade, open-source traffic tracking platform inspired by Keitaro. Built with modern technologies including Next.js 14, React 18, TypeScript, Supabase, and Drizzle ORM.

Features

Tech Stack

Getting Started

Prerequisites

Installation

  1. Clone the repository: ```bash git clone https://github.com/yourusername/trackforge.git cd trackforge ```

  2. Install dependencies: ```bash pnpm install ```

  3. Set up environment variables: ```bash cp .env.example .env.local ```

Fill in your environment variables:

  1. Set up the database: ```bash pnpm db:generate pnpm db:migrate ```

  2. Start the development server: ```bash pnpm dev ```

Open http://localhost:3000 to see the application.

Project Structure

``` trackforge/ ├── app/ # Next.js 14 App Router │ ├── actions/ # Server Actions │ ├── api/ # API Routes │ ├── dashboard/ # Dashboard pages │ ├── campaigns/ # Campaign management │ └── layout.tsx # Root layout ├── components/ # React components │ ├── ui/ # shadcn/ui components │ ├── dashboard/ # Dashboard components │ └── campaigns/ # Campaign components ├── lib/ # Utilities and configurations │ ├── db/ # Database schema and connection │ ├── supabase/ # Supabase client configuration │ └── validations/ # Zod schemas ├── hooks/ # Custom React hooks └── scripts/ # Database scripts ```

Key Features

Campaign Management

Analytics Dashboard

Traffic Sources

Reports

API Endpoints

Tracking

Database Schema

The application uses a PostgreSQL database with the following main tables:

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Testing

Run the test suite: ```bash pnpm test ```

Deployment

The application is optimized for deployment on Vercel:

  1. Connect your GitHub repository to Vercel
  2. Set up environment variables in Vercel dashboard
  3. Deploy automatically on every push to main branch

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

For support and questions, please open an issue on GitHub or contact the maintainers.


Built with ❤️ by the TrackForge team