Skip to content

Repository files navigation

Habitro 🌿

Habitro is a modern, minimalist habit tracker designed to help you build and maintain positive routines. Built with React Native (Expo), it features a beautiful dark-themed UI, streak tracking, and insightful analytics to keep you motivated.

Habitro Logo

πŸ“‘ Table of Contents


✨ Features

  • Personalized Routine Tracking: Create, edit, and manage your daily habits with ease.
  • Smart Analytics: Visualize your progress with interactive charts and heatmaps.
  • Gamified Growth: Watch your virtual plant grow as you complete tasks.
  • Seamless Auth: Secure cloud-based synchronization (MongoDB + Express).
  • Beautiful UI: Polished Dark Mode interface inspired by Material Design 3.
  • Haptic Feedback: Satisfying interactions for every completion.

πŸ›  Tech Stack


πŸš€ Getting Started

Prerequisites

Installation

  1. Clone the repository

    git clone https://github.com/yourusername/habitro.git
    cd habitro
  2. Install dependencies

    npm install

    Note: If you want to run the backend locally, ensure you have MongoDB running or a connection string in .env.

  3. Start the app

    npx expo start
  4. Scan the QR Code: Use the Expo Go app (Android) or Camera app (iOS) to run the app on your device.

Resetting the Project

If you need a fresh slate during development:

npm run reset-project

πŸ“‚ Project Structure

habitro/
β”œβ”€β”€ app/                 # Expo Router screens
β”‚   β”œβ”€β”€ (tabs)/          # Main tab navigation (Home, Editor, Analytics, Settings)
β”‚   β”œβ”€β”€ login.tsx        # Authentication screens
β”‚   └── _layout.tsx      # Root layout & Splash screen logic
β”œβ”€β”€ assets/              # Images, fonts, and icons
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/      # Reusable UI components (Logo, Cards, Charts)
β”‚   β”œβ”€β”€ store/           # Zustand state stores (Auth, Routine)
β”‚   β”œβ”€β”€ theme/           # Design tokens (Colors, Spacing, Typography)
β”‚   └── utils/           # Helper functions (Dates, Streaks)
β”œβ”€β”€ server/              # Express backend & Seed scripts
└── scripts/             # Utility scripts (Icon generation, etc.)

πŸ“± Building for Android

To build an APK for testing or release:

eas build -p android --profile preview

or for a local build (if configured):

npx expo run:android

See BUILD_APK.md for detailed instructions on generating a signed APK.


πŸ“„ License

This project is licensed under the MIT License.

About

A Modern, Minimalist Habit Tracker app designed to help you build and maintain positive routines.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages