{"id":15173225,"url":"https://github.com/chrispsang/wellness-wise","last_synced_at":"2026-01-24T17:34:23.939Z","repository":{"id":252815829,"uuid":"840759477","full_name":"chrispsang/Wellness-Wise","owner":"chrispsang","description":"Wellness Wise is a comprehensive Health and Wellness Tracker designed to empower users by tracking their physical activities, diet, sleep, mood, and goals, while offering personalized insights and recommendations through advanced analytics.","archived":false,"fork":false,"pushed_at":"2024-08-13T07:05:09.000Z","size":49475,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-11T09:33:06.841Z","etag":null,"topics":["angular","chartjs","expressjs","fitness","flyio","health","jwt-authentication","machine-learning","nodejs","postgresql","sentiment-analysis","supabase","tracking","vercel-deployment","wellness"],"latest_commit_sha":null,"homepage":"https://wellness-wise.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chrispsang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2024-08-10T15:45:06.000Z","updated_at":"2024-08-13T07:05:13.000Z","dependencies_parsed_at":"2025-02-11T09:42:31.677Z","dependency_job_id":null,"html_url":"https://github.com/chrispsang/Wellness-Wise","commit_stats":null,"previous_names":["chrispsang/wellness-wise"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrispsang%2FWellness-Wise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrispsang%2FWellness-Wise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrispsang%2FWellness-Wise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chrispsang%2FWellness-Wise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chrispsang","download_url":"https://codeload.github.com/chrispsang/Wellness-Wise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252580791,"owners_count":21771392,"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","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":["angular","chartjs","expressjs","fitness","flyio","health","jwt-authentication","machine-learning","nodejs","postgresql","sentiment-analysis","supabase","tracking","vercel-deployment","wellness"],"created_at":"2024-09-27T10:42:42.744Z","updated_at":"2026-01-24T17:34:23.925Z","avatar_url":"https://github.com/chrispsang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eWellness Wise\u003c/h1\u003e\n\nWellness Wise is a comprehensive Health and Wellness Tracker that allows users to track their physical activities, diet, sleep, mood, and goals. The project showcases user-centric application development, integrating various types of data into a cohesive and useful tool.\n\n## Table of Contents\n\n- [Key Features](#key-features)\n- [Tech Stack](#tech-stack)\n- [Prerequisites](#prerequisites)\n- [Getting Started](#getting-started)\n- [Deployment](#deployment)\n\n## Key Features\n\n- **Tracking Physical Activities**: Log your workouts, track durations, and monitor progress.\n- **Diet Tracking**: Record your daily food intake with calories and meal types.\n- **Sleep Tracking**: Track your sleep patterns, including hours slept, start time, and end time.\n- **Mood Tracking**: Record daily moods.\n- **Mood Analysis and Insights**: Use sentiment analysis to provide insights into users' mood patterns and suggest ways to improve mental well-being.\n- **Dashboard for Mood Trends**: Visualize sentiment trends over time in a chart, showing how the user's mood has changed. \n- **Goals Tracking**: Set and monitor your health and wellness goals.\n- **Personalized Recommendations**: Leverage machine learning algorithms to provide personalized recommendations for workouts, dietary changes, and sleep improvements.\n- **User Authentication**: Secure user authentication using JWT (JSON Web Token).\n\n## Tech Stack\n\n- **Frontend**: [Angular](https://angular.io/)\n- **Backend**: [Node.js](https://nodejs.org/), [Express.js](https://expressjs.com/)\n- **Database**: [PostgreSQL](https://www.postgresql.org/)\n- **Machine Learning**: [Python](https://www.python.org/) for sentiment analysis and recommendations\n- **Charting Library**: [Chart.js](https://www.chartjs.org/) for visualizing mood trends.\n- **Deployment**: [Vercel](https://vercel.com/) for frontend, [Fly.io](https://fly.io/) for backend, [Supabase](https://supabase.com/) for database.\n\n## Prerequisites\n\nBefore you start, ensure you have the following software installed:\n\n- **Node.js**: [Download Node.js](https://nodejs.org/)\n- **PostgreSQL**: [Download PostgreSQL](https://www.postgresql.org/download/)\n- **Angular CLI**: Install via npm: `npm install -g @angular/cli`\n- **Python**: [Download Python](https://www.python.org/downloads/)\n\n## Getting Started\n\n### 1. Clone the Repository\n\n```bash\ngit clone https://github.com/chrispsang/Wellness-Wise.git\ncd Wellness-Wise\n```\n\n### 2. Setup the Backend\n\nNavigate to the backend directory:\n\n```bash\ncd health-tracker-backend\n```\n\n**2.1 Install Dependencies**\n\n```bash\nnpm install\n```\n\n**2.2 Set Up Environment Variables**\n\nCreate the `.env` file:\n\n```bash\ntouch .env\n```\n\nAdd the following configuration to the .env file:\n\n```bash\nDB_HOST=localhost\nDB_USER=new_user\nDB_PASSWORD=new_password\nDB_NAME=health_wellness\nDB_PORT=5432\nPORT=3000\nACCESS_TOKEN_SECRET=your_jwt_secret \n\n```\n**2.3 Set Up PostgreSQL Database**\n\nBefore running the schema script, follow these steps to create a new PostgreSQL user and set up the health_wellness database:\n\n1. **Create a New PostgreSQL User:**\n\n    - Open your terminal and connect to the PostgreSQL server using the default postgres superuser:\n\n        ```bash\n        psql -U postgres -d postgres\n         ```\n\n    - Create a new user:\n\n        ```bash\n        CREATE USER new_user WITH PASSWORD 'new_password';\n        ```\n\n    - Grant the new user the privilege to create databases:\n\n        ```bash\n        ALTER USER new_user CREATEDB;\n        ```\n\n    - Exit psql:\n\n        ```bash\n        \\q\n        ```\n\n2. **Create the health_wellness Database:**\n\n    - Connect to PostgreSQL as the new user:\n\n        ```bash\n        psql -U new_user -d postgres\n        ```\n    - Create the database:\n\n        ```bash\n        CREATE DATABASE health_wellness;\n        ```\n\n    - Exit psql:\n\n        ```bash\n        \\q\n        ```\n\n3. **Run the Schema Script:**\n\n    Now that the health_wellness database has been created, run the schema script:\n\n    ```bash\n    psql -U new_user -d health_wellness -f ./schema.sql\n    ```\n\n**2.4 Run the Backend**\n\n```bash\nnode src/server.js\n```\n\n### 3. Access the Backend\nOpen your browser and go to http://localhost:3000 to access the backend.\n\n### 4. Setup the Frontend\nNavigate to the frontend directory:\n\n```bash\ncd health-tracker-frontend\n```\n\n**4.1 Install Dependencies**\n\n```bash\nnpm install\n```\n\n**4.2 Run the Frontend**\n\n```bash\nng serve\n```\n\n### 5. Access the Application\nOpen your browser and go to http://localhost:4200 to access Wellness Wise.\n\n## Deployment\n\nThe application is deployed and accessible via the following links:\n\n- **Frontend**: Deployed on Vercel at [https://wellness-wise.vercel.app](https://wellness-wise.vercel.app)\n- **Backend**: Deployed on Fly.io at [https://health-tracker-backend.fly.dev](https://health-tracker-backend.fly.dev)\n- **Database**: Managed by Supabase\n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrispsang%2Fwellness-wise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchrispsang%2Fwellness-wise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchrispsang%2Fwellness-wise/lists"}