A modern habit tracking application that helps users build and maintain consistent habits with visual feedback, streak tracking, and statistics.
- Create, track, and visualize habits by category
- Track habit completion with 0%, 50%, or 100% levels
- View streaks and completion statistics
- Calendar view to review past performance
- Mobile-responsive design
- Frontend: React, TypeScript, Tailwind CSS, shadcn/ui, TanStack Query
- Backend: Express.js, TypeScript, In-memory storage (can be upgraded to PostgreSQL)
- Build Tools: Vite, ESBuild
- Create a new site on Netlify
- Connect your GitHub repository
- Use the following build settings:
- Build command:
cd client && npm run build - Publish directory:
client/dist
- Build command:
- Set environment variables:
NODE_ENV:production
- Create a new Web Service on Render
- Connect your GitHub repository
- Use the following settings:
- Environment: Node
- Build Command:
npm install && npm run build - Start Command:
npm start
- Set environment variables:
NODE_ENV:productionPORT:10000CORS_ORIGIN: Your Netlify app URL (e.g.,https://habit-tracker-app.netlify.app)SESSION_SECRET: Generate a random string
After deploying the backend, update the Netlify redirect rule in the netlify.toml file:
[[redirects]]
from = "/api/*"
to = "https://your-render-app-url.onrender.com/api/:splat"
status = 200
force = trueReplace your-render-app-url with your actual Render app URL.
- Clone the repository
- Install dependencies:
npm install - Start the development server:
npm run dev - Access the application at
http://localhost:5000
MIT