尚未检测到更新。GitHub 发布版本后会显示在这里。
A comprehensive personal life tracker web app built with Next.js. Track habits, sleep, food, study sessions, expenses, and journal entries. Features interactive analytics, streak tracking, PWA support, and beautiful UI with dark mode. Free, secure, and designed to help you build better habits and achieve your goals.
翻译准备中
正在加载完整 README。
查看完整 README ↗A production-ready, mobile-first personal tracker web app built with Next.js, TypeScript, and MongoDB.
git clone <repository-url>
cd tracker.ratnesh-maurya.com
npm install
cp .env.example .env.local
Edit .env.local and add your MongoDB URI:
MONGODB_URI=mongodb+srv://username:[email protected]/
JWT_SECRET=your-super-secret-jwt-key
JWT_REFRESH_SECRET=your-super-secret-refresh-key
NEXT_PUBLIC_APP_URL=http://localhost:3000
npm run dev
/app
/(auth) # Authentication pages
/(dashboard) # Protected dashboard pages
/api # API route handlers
/components # Reusable UI components
/lib
/db # Database utilities
/auth # Authentication utilities
/analytics # Analytics logic
/recommendations # Recommendation logic
/models # Mongoose models
/hooks # React hooks
/types # TypeScript types
/tests # Test files
/scripts # Utility scripts
/public # Static assets
POST /api/auth/register - Register new userPOST /api/auth/login - Login userPOST /api/auth/refresh - Refresh access tokenPOST /api/auth/logout - Logout userGET /api/habits - Get all habitsPOST /api/habits - Create habitGET /api/habits/[id] - Get habitPATCH /api/habits/[id] - Update habitDELETE /api/habits/[id] - Delete habitGET /api/habits/[id]/checkins - Get check-insPOST /api/habits/[id]/checkins - Create check-inSimilar patterns for /api/sleep, /api/food, /api/study, /api/expenses, /api/journal
GET /api/analytics/summary - Get analytics summaryGET /api/recommendations/daily - Get food recommendationsnpm run dev - Start development servernpm run build - Build for productionnpm run start - Start production servernpm run lint - Run ESLintnpm test - Run testsnpm run test:e2e - Run E2E testsnpm run seed - Seed database with sample dataThis app is ready for deployment on Vercel:
MIT
This is a personal project, but suggestions and improvements are welcome!