Skip to the content.

Tri 2 Feature Reflection

Reflection about my steps feature

Reflection

Comments Here you can comment about my website and I can use the feedback to further improve my website

Step Tracker Analysis: Strengths, Weaknesses, and Next Steps

✅ Strengths

1. Full-Stack Implementation

  • Integrates frontend (JavaScript, HTML), backend (Flask, Python), and database (SQLAlchemy).
  • Uses JWT authentication to secure step entries.

2. CRUD Functionality

  • Users can Create, Read, Update, and Delete (CRUD) their step entries.
  • Provides real-time updates via Fetch API.

3. JSON to DOM Integration

  • Retrieves step data from the backend as JSON.
  • Dynamically updates the DOM to display step progress.

4. Database Management & Restore

  • Stores step data persistently using SQLAlchemy.
  • Includes a restore function to reset or backup step data.

5. Motivational System

  • Displays encouraging messages based on step count.
  • Helps keep users motivated to stay active.

⚠️ Weaknesses

1. Only One Step Entry Per User

  • Currently, users can only store one step entry at a time.
  • No way to log steps daily—updating overwrites previous data.

2. Lacks Weekly/Monthly Analysis

  • No historical tracking to monitor long-term trends.
  • Cannot analyze a week’s worth of steps to ensure a user stays healthy.

3. No Graphical Data Representation

  • Only displays steps as text.
  • No charts or graphs to visualize progress.

4. No Goal-Setting Feature

  • Users cannot set a daily or weekly step goal.
  • No way to track if users meet their fitness targets.

🚀 Next Steps (Planned Improvements)

1. Implement Daily Step Logging

  • Allow users to log steps daily instead of overwriting a single entry.
  • Modify the database schema to store date-based step records: ```python class Steps(db.Model): id = db.Column(db.Integer, primary_key=True) user = db.Column(db.String(255), nullable=False) steps = db.Column(db.Integer, nullable=False) date = db.Column(db.Date, nullable=False) # New field for tracking daily logs