A full-stack blog platform with a Next.js frontend and Hono.js backend for analytics.
├── apps/
│ ├── frontend/ # Next.js blog application
│ └── backend/ # Hono.js API for pageview tracking
├── package.json # Root workspace configuration
└── README.md # This file
- Node.js 18+
- Bun (for backend)
- npm or yarn
# Install all dependencies
npm run install:all
# Start both frontend and backend
npm run dev
# Or start individually:
npm run dev:frontend # Frontend on http://localhost:3000
npm run dev:backend # Backend on http://localhost:4001
# Build both applications
npm run build
# Clean all build artifacts
npm run clean
- Framework: Next.js 14 with App Router
- Language: TypeScript
- Styling: Tailwind CSS + Shadcn/ui
- Port: 3000
- Framework: Hono.js
- Language: TypeScript
- Runtime: Bun
- Port: 4001
POST /api/pageviews
- Track a pageviewGET /api/pageviews
- Get pageviews with filteringGET /api/pageviews/stats
- Get analytics statisticsGET /health
- Health check
- 📝 Blog post management
- 📊 Pageview analytics
- 🎨 Modern UI with smooth animations
- 📱 Responsive design
- 🔒 Type-safe with TypeScript
- ⚡ Fast development with hot reload
- 🚀 Production-ready builds
- Make changes to either frontend or backend
- Both applications will hot-reload automatically
- Frontend can consume backend APIs at
http://localhost:4001
- Use
npm run build
to create production builds