• Svelte 54%
  • CSS 28.2%
  • TypeScript 14%
  • HTML 2.1%
  • JavaScript 1.7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
CasLinden 8371f24de8 main (#21)
Hi 508 dev,

I saw this as an opportunity to try and finally work with Svelte, which was fun!

In roughly the following order, I:

- moved date and time related helpers into their own module
- made a map for the date query param setter to use these helpers
- replaced the calendar header with a slightly slicker one
- added a month picker and arrows to change months
- decoupled the date and month state so you can switch month without switching date

It was pretty fun, and I will probably reach out to someone about ambitions to work with you guys on other projects.
thanks!

Reviewed-on: #21
Reviewed-by: Tony Sun <[email protected]>
Co-authored-by: CasLinden <[email protected]>
Co-committed-by: CasLinden <[email protected]>
2025-10-30 09:57:46 +01:00
.github/workflows main (#21) 2025-10-30 09:57:46 +01:00
src main (#21) 2025-10-30 09:57:46 +01:00
static feat(webmanifest): add start_url to enhance installability 2024-05-22 14:31:14 +08:00
.eslintignore initiate sveltekit 2024-02-12 21:15:43 +08:00
.eslintrc.cjs initiate sveltekit 2024-02-12 21:15:43 +08:00
.gitignore Actually use sveltekit huge example app lol 2024-02-13 14:51:20 +08:00
.npmrc initiate sveltekit 2024-02-12 21:15:43 +08:00
.prettierignore initiate sveltekit 2024-02-12 21:15:43 +08:00
.prettierrc initiate sveltekit 2024-02-12 21:15:43 +08:00
design.png Add design image 2024-02-12 22:48:13 +08:00
LICENSE Initial commit 2024-02-11 07:59:17 +00:00
package-lock.json main (#21) 2025-10-30 09:57:46 +01:00
package.json main (#21) 2025-10-30 09:57:46 +01:00
README.md main (#21) 2025-10-30 09:57:46 +01:00
svelte.config.js main (#21) 2025-10-30 09:57:46 +01:00
tsconfig.json chore(tsconfig): enable allowImportingTsExtensions to fix import path issue in svelte files 2024-05-22 12:55:18 +08:00
vite.config.ts initiate sveltekit 2024-02-12 21:15:43 +08:00

🥗 Running Calorie Average Tracker

A simple, elegant web application for tracking daily calorie intake with rolling averages. Built as a collaborative learning project by the 508.dev software engineering co-op.

🎯 What It Does

Track your daily calorie intake and view intelligent rolling averages (3-day, 5-day, 2-week, and monthly) that help smooth out daily fluctuations. Perfect for flexible calorie management without strict daily limits.

Example: If you consumed 1000, 1000, and 2000 calories over the last 3 days, your 3-day average would be 1333 calories/day. This approach allows for natural variation - like enjoying a holiday meal while maintaining overall balance.

✨ Features

  • 📅 Interactive Calendar View - Visual month-at-a-glance with calorie data
  • 🎛️ Date Picker Integration - Quick navigation to any date
  • 📊 Multiple Rolling Averages - 3-day, 5-day, 2-week, and monthly views
  • 📱 Mobile-Friendly - Swipe gestures for date navigation
  • 💾 Local Storage - Your data stays private on your device
  • 🔄 Data Import/Export - Backup and restore your calorie history
  • 🎨 Clean UI - Modern, intuitive interface built with SvelteKit

🚀 Live Demo

Try it now: https://508-dev.github.io/running-calorie-average/

🤝 About This Project

This is an open-source collaborative project by the 508.dev software engineering co-op.

  • Perfect first contribution for learning our workflow
  • Test new ideas and technologies
  • Real-world experience with code reviews, issue management, and team development
  • Create something useful while learning together

🌟 We're Growing!

This project is actively evolving and we're looking for contributors! Whether you're a seasoned developer or just starting out, there's a place for you here. Who knows where this project will go - maybe it becomes the go-to calorie tracking app, maybe it evolves into something completely different. That's the beauty of open-source collaboration!

🎓 Perfect for Learning

  • Beginners: Start with documentation, bug fixes, or small features
  • Intermediate: Add new features, improve UI/UX, or optimize performance
  • Advanced: Architect new systems, mentor others, or lead feature development

Tech Stack: SvelteKit, TypeScript, Vite, CSS3

🛠️ Contributing

We welcome contributions from developers of all skill levels! Here's how to get involved:

🎯 Good First Issues

  • 📝 Improve documentation or add code comments
  • 🐛 Fix small bugs or UI inconsistencies
  • 🎨 Enhance styling and user experience
  • ✅ Add unit tests for existing functions
  • 🌐 Improve accessibility features

💡 Feature Ideas

  • 🔐 User authentication and cloud sync
  • 📈 Advanced analytics and charts
  • 🎯 Goal setting and achievement tracking
  • 📱 Progressive Web App (PWA) features
  • 🔗 Integration with fitness apps/devices
  • 🍎 Food database integration
  • 📤 More export formats (CSV, JSON, etc.)

📋 Development Workflow

  1. Fork & Clone the repository
  2. Create a branch for your feature: git checkout -b feature/amazing-feature
  3. Install dependencies: npm install
  4. Start development: npm run dev
  5. Make your changes and test thoroughly
  6. Run checks: npm run lint and npm run check
  7. Submit a Pull Request with a clear description

🔧 Development Setup

Prerequisites: Node.js 16+ and npm

# Clone the repository
git clone https://github.com/508-dev/running-calorie-average.git
cd running-calorie-average

# Install dependencies
npm install

# Start development server
npm run dev

💡 Tip: If npm install fails, try deleting package-lock.json and node_modules, then run npm install again.

Available Scripts:

  • npm run dev - Start development server
  • npm run build - Build for production
  • npm run preview - Preview production build
  • npm run lint - Run linter
  • npm run check - Type checking

🚀 Deployment

This app is automatically deployed to GitHub Pages from the main branch.

Live URL: https://508-dev.github.io/running-calorie-average/

📄 License

Licensed under AGPL-3.0. You're free to use, modify, and deploy this code for your own purposes.

🏗️ Architecture

  • Frontend: SvelteKit with TypeScript
  • Styling: CSS3 with custom properties
  • State Management: Svelte stores
  • Storage: Browser localStorage
  • Build Tool: Vite
  • Deployment: GitHub Pages (static generation)

🤔 Questions or Ideas?

  • 💬 Join discussions in our GitHub Issues
  • 🐛 Report bugs with detailed reproduction steps
  • 💡 Suggest features - we love creative ideas!
  • 📧 Contact the 508.dev team for collaboration opportunities

Ready to contribute? Check out our open issues and jump in! Every contribution, no matter how small, helps make this project better. 🚀