https://github.com/flexycode/analytics-saas
Enterprise-grade AI-powered analytics platform with predictive insights and automated reporting.
https://github.com/flexycode/analytics-saas
bull docker google-vertex-ai grafana jaeger kubernetes loki nestjs nextjs14 nginx-ingress open-ai-api postgresql prometheus react-18 redis shadcn-ui tailwindcss typeorm typescript
Last synced: 16 days ago
JSON representation
Enterprise-grade AI-powered analytics platform with predictive insights and automated reporting.
- Host: GitHub
- URL: https://github.com/flexycode/analytics-saas
- Owner: flexycode
- License: mit
- Created: 2026-01-10T15:18:18.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2026-01-12T06:02:05.000Z (3 months ago)
- Last Synced: 2026-01-12T16:08:26.476Z (3 months ago)
- Topics: bull, docker, google-vertex-ai, grafana, jaeger, kubernetes, loki, nestjs, nextjs14, nginx-ingress, open-ai-api, postgresql, prometheus, react-18, redis, shadcn-ui, tailwindcss, typeorm, typescript
- Language: TypeScript
- Homepage:
- Size: 804 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Analytics SaaS Platform
Enterprise-grade AI-powered analytics platform with predictive insights and automated reporting.
## Tech Stack
| Layer | Technology |
|-------|------------|
| Frontend | Next.js 14 (App Router), React 18, TypeScript, Tailwind CSS, Shadcn/UI |
| Backend | NestJS 10, TypeScript, TypeORM, Bull (Job Queue) |
| Database | PostgreSQL 16 (Primary), Redis 7 (Cache/Sessions) |
| Infrastructure | Docker, Kubernetes, Nginx Ingress |
| Monitoring | Prometheus, Grafana, Loki, Jaeger |
| ML/AI | OpenAI API / Google Vertex AI (Hybrid) |
## UI Showcase
### Dashboard Overview

*Real-time analytics overview with key metrics and interactive charts*
### Landing Page

*Modern, high-converting landing page with feature highlights*
### Authentication
*Secure authentication flow with real-time validation*
## Project Structure
```
analytics-saas/
├── backend/ # NestJS API server
│ ├── src/
│ │ ├── auth/ # Authentication & RBAC
│ │ ├── tenants/ # Multi-tenancy
│ │ ├── analytics/ # Core analytics
│ │ ├── reports/ # Automated reporting
│ │ ├── predictions/ # ML integration
│ │ ├── dashboards/ # Dashboard management
│ │ ├── cache/ # Redis caching
│ │ └── jobs/ # Background jobs
│ └── Dockerfile
├── frontend/ # Next.js application
│ ├── src/
│ │ ├── app/ # App Router pages
│ │ ├── components/ # UI components
│ │ └── lib/ # Utilities
│ └── Dockerfile
├── k8s/ # Kubernetes manifests
│ ├── base/
│ ├── backend/
│ ├── frontend/
│ ├── postgres/
│ ├── redis/
│ └── monitoring/
├── docker-compose.yml # Local development
└── .env.example # Environment template
```
## Quick Start
### Prerequisites
- Docker & Docker Compose
- Node.js 20+ (for local development)
- pnpm (recommended) or npm
### Development Setup
```bash
# Clone and setup
git clone
cd analytics-saas
# Copy environment variables
cp .env.example .env
# Start all services
docker-compose up -d
# Access applications
# Frontend: http://localhost:3000
# Backend API: http://localhost:4000
# API Docs: http://localhost:4000/api/docs
```
### Manual Setup (Without Docker)
```bash
# Backend
cd backend
pnpm install
pnpm run migration:run
pnpm run start:dev
# Frontend (new terminal)
cd frontend
pnpm install
pnpm run dev
```
## Environment Variables
See `.env.example` for all required variables.
| Variable | Description |
|----------|-------------|
| `DATABASE_URL` | PostgreSQL connection string |
| `REDIS_URL` | Redis connection string |
| `JWT_SECRET` | Token signing secret |
| `JWT_EXPIRES_IN` | Token expiration time |
| `OPENAI_API_KEY` | OpenAI API key for predictions |
## API Documentation
Interactive API documentation available at `/api/docs` when the backend is running.
## License
MIT License - see [LICENSE](LICENSE) for details.