{"id":30219112,"url":"https://github.com/engineervix/bambino","last_synced_at":"2025-10-10T07:34:56.212Z","repository":{"id":303892474,"uuid":"1017046150","full_name":"engineervix/bambino","owner":"engineervix","description":"Baby activity tracking app. Tracks feeding, sleeping, diapers, and other baby activities","archived":false,"fork":false,"pushed_at":"2025-08-07T00:58:50.000Z","size":645,"stargazers_count":0,"open_issues_count":9,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-07T02:32:06.541Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/engineervix.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-10T00:15:45.000Z","updated_at":"2025-08-07T00:58:50.000Z","dependencies_parsed_at":"2025-07-10T10:08:40.731Z","dependency_job_id":"3fc3f0a6-bb09-4d3e-bd2b-fbaa5ddaa444","html_url":"https://github.com/engineervix/bambino","commit_stats":null,"previous_names":["engineervix/bambino"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/engineervix/bambino","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fbambino","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fbambino/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fbambino/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fbambino/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/engineervix","download_url":"https://codeload.github.com/engineervix/bambino/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/engineervix%2Fbambino/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270385319,"owners_count":24574544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-08-14T07:47:42.695Z","updated_at":"2025-10-10T07:34:56.162Z","avatar_url":"https://github.com/engineervix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bambino\n\nA self-hosted baby activity tracking app for personal use. Tracks feeding, sleeping, diapers, and other baby activities with complete data ownership.\n\n![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/engineervix/bambino)\n[![CI/CD](https://github.com/engineervix/bambino/actions/workflows/main.yml/badge.svg)](https://github.com/engineervix/bambino/actions/workflows/main.yml)\n\n[![Node v22](https://img.shields.io/badge/Node-v22-teal.svg)](https://nodejs.org/en/blog/release/v22.0.0)\n[![code style: prettier](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)\n\n\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n- [Features](#features)\n- [Tech stack](#tech-stack)\n- [Running the application](#running-the-application)\n  - [Prerequisites](#prerequisites)\n  - [Configuration](#configuration)\n  - [Build](#build)\n  - [Database](#database)\n  - [Development Mode](#development-mode)\n  - [Production Mode](#production-mode)\n    - [With Docker (Recommended)](#with-docker-recommended)\n    - [With Local Binary](#with-local-binary)\n  - [Creating a User](#creating-a-user)\n  - [Development Seed Data](#development-seed-data)\n  - [Command-Line Help](#command-line-help)\n- [Testing](#testing)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n## Features\n\n- Track feeds, pumps, diapers, sleep, growth, health records, and milestones\n- Mobile-first design with dark mode for nighttime use\n- Timer functionality for activities\n- Single binary deployment with embedded frontend\n\n## Tech stack\n\n- **Backend**: Go with [Echo](https://echo.labstack.com/) framework\n- **Frontend**: [Vue 3](https://vuejs.org/) + [Vuetify](https://vuetifyjs.com/)\n- **Database**: SQLite or PostgreSQL\n- **Auth**: Session-based\n\n## Running the application\n\n### Prerequisites\n\n- Go\n- Node.js and npm\n- [just](https://github.com/casey/just)\n\n### Configuration\n\nCopy the example environment files and update them with your configuration.\n\n```bash\ncp .env.example .env\ncp .env.test.example .env.test\n```\n\n### Build\n\nTo build the application binary and frontend assets, run:\n\n```bash\njust build\n```\n\n### Database\n\nThe application can use either PostgreSQL or SQLite.\n\nIf you are using PostgreSQL, start the container:\n\n```bash\njust up\n```\n\nThen, run the database migrations. It's recommended to use the binary:\n\n```bash\n./bin/bambino db migrate\n```\n\nAlternatively, you can run the migrations without building the binary:\n\n```bash\ngo run cmd/bambino/main.go db migrate\n```\n\n### Development Mode\n\nFor development, you can run the backend and frontend separately.\n\n**Backend:**\n\n```bash\njust run\n```\n\n**Frontend:**\n\n```bash\nnpm run dev\n```\n\nThe application will be available at `http://localhost:5173`.\n\n### Production Mode\n\nThere are two ways to run the application in production mode.\n\n#### With Docker (Recommended)\n\nFor production, create a `.prod.env` file with your production secrets. **Do not commit this file to version control.**\n\nCreate a file named `.prod.env` and paste the following content into it, replacing the placeholder values:\n\n```env\n# The domain name for your application\nDOMAIN_NAME=your-domain.com\n\n# PostgreSQL connection details\nPOSTGRES_USER=baby\nPOSTGRES_DB=baby\nPOSTGRES_PASSWORD=generate-a-strong-password\n\n# A long, random string for session signing\nSESSION_SECRET=generate-a-long-random-secret-string\n\n# Backblaze B2 credentials (optional, for backups)\n# B2_APPLICATION_KEY_ID=\n# B2_APPLICATION_KEY=\n# B2_ENDPOINT=\n# B2_BUCKET_NAME=\n# B2_REGION=\n\n# Notification URL for backup failures (optional)\n# NOTIFICATION_URL=\n```\n\nYou can then manage the application using `just`:\n\n```bash\n# Start all services in the background\njust prod-up\n\n# View the logs\njust prod-logs\n\n# Stop all services\njust prod-down\n\n# Execute a command in the running container\njust prod-exec ls -la\n\n# Get an interactive shell\njust prod-shell\n```\n\nThe application will be available on the domain you configure in `.prod.env`.\n\n#### With Local Binary\n\nYou can also run a production-like instance locally without Docker. This uses the compiled binary and respects the `ENV` environment variable.\n\n```bash\njust build\nENV=production ./bin/bambino serve\n```\n\nThe application will be available at `http://localhost:8080`.\n\n### Creating a User\n\nCreate an initial user and baby. The date should be in `YYYY-MM-DD` format.\n\n```bash\n./bin/bambino create-user -u \u003cusername\u003e -b \u003cbabyname\u003e -d \u003cdate_of_birth\u003e\n```\n\n### Development Seed Data\n\nFor development purposes, you can quickly populate the database with test data using the seed command:\n\n```bash\n./bin/bambino seed\n```\n\nThis will create:\n\n- A test user with username `testuser` and password `password123`\n- A test baby named \"Test Baby\" (6 months old)\n- Sample activities (feeding, diaper change, sleep)\n\n**Note**: The seed command is only available in development environments and will refuse to run if `ENV=production`.\n\n### Command-Line Help\n\nYou can get help for any command by passing the `--help` flag.\n\n```bash\n./bin/bambino --help\n./bin/bambino create-user --help\n```\n\n## Testing\n\nRun the test suite with:\n\n```bash\njust test\n```\n\nTo see test coverage statistics:\n\n```bash\njust test-coverage\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineervix%2Fbambino","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fengineervix%2Fbambino","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fengineervix%2Fbambino/lists"}