Git Product home page Git Product logo

health-master's Introduction

Health Master

health master

Setup

docker volume create daming-health-master-volume
docker volume create daming-health-master-redis-volume
docker volume create daming-health-master-kuma-volume
docker network create daming-health-master-network

docker-compose pull

Postgresql

create a user, like dbuser

	
CREATE USER dbuser WITH PASSWORD '<CUSTOM PASSWORD>';

create a database, like exampledb

CREATE DATABASE exampledb OWNER dbuser;

add permission to the database with the user:

GRANT ALL PRIVILEGES ON DATABASE exampledb TO dbuser.

Install githook

chmod ug+x .go-husky/*
sh install_githooks.sh
chmod ug+x .git/hooks/*

health-master's People

Contributors

damingerdai avatar renovate[bot] avatar dependabot[bot] avatar

Stargazers

Song avatar

Watchers

 avatar  avatar

health-master's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • chore(deps): update golang docker tag to v1.22.3
  • chore(deps): update redis docker tag to v7.2.5
  • fix(deps): update module github.com/swaggo/swag to v1.16.3
  • fix(deps): update module github.com/xuri/excelize/v2 to v2.8.1
  • chore(deps): update alpine docker tag to v3.20
  • chore(deps): update dependency @types/yup to ^0.32.0
  • chore(deps): update dependency eslint to v8.57.0
  • chore(deps): update dependency eslint-plugin-react to v7.34.2
  • chore(deps): update dependency prettier to v3.3.0
  • chore(deps): update dependency sass to v1.77.4
  • chore(deps): update node.js to v20.13.1 (node, @types/node)
  • chore(deps): update postgres docker tag to v16.3
  • chore(deps): update sosedoff/pgweb docker tag to v0.15.0
  • fix(deps): update dependency framer-motion to v11.2.10
  • fix(deps): update dependency react-icons to v4.12.0
  • fix(deps): update module github.com/gin-gonic/gin to v1.10.0
  • fix(deps): update module github.com/golang-jwt/jwt/v5 to v5.2.1
  • fix(deps): update module github.com/golang-migrate/migrate/v4 to v4.17.1
  • fix(deps): update module github.com/jackc/pgx/v5 to v5.6.0
  • fix(deps): update module github.com/redis/go-redis/v9 to v9.5.2
  • fix(deps): update module github.com/spf13/viper to v1.19.0
  • fix(deps): update module go.uber.org/zap to v1.27.0
  • chore(deps): update actions/cache action to v4
  • chore(deps): update actions/setup-go action to v5
  • chore(deps): update dependency @typescript-eslint/eslint-plugin to v7
  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency vercel to v34
  • fix(deps): update dependency date-fns to v3
  • fix(deps): update dependency react-icons to v5
  • fix(deps): update module github.com/swaggo/files to v2
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yml
  • postgres 16.2-alpine3.19
  • edoburu/pgbouncer 1.21.0-p1
  • redis 7.2.4-alpine3.19
  • louislam/uptime-kuma 1.23.13-alpine
  • sosedoff/pgweb 0.14.2
dockerfile
Dockerfile
  • golang 1.22.2-alpine3.19
  • alpine 3.19
github.Dockerfile
  • golang 1.22.2-alpine3.19
  • alpine 3.19
web/Dockerfile
  • node 20.10.0-alpine3.18
  • node 20.10.0-alpine3.18
  • node 20.10.0-alpine3.18
github-actions
.github/workflows/ci.yaml
  • actions/checkout v4
  • actions/setup-node v4
  • actions/cache v3
  • actions/checkout v4
  • actions/setup-go v4
  • actions/cache v3
.github/workflows/deploy.yaml
  • actions/checkout v4
  • appleboy/scp-action v0.1.7
  • appleboy/ssh-action v1.0.3
gomod
go.mod
  • go 1.22.1
  • github.com/aws/aws-lambda-go v1.47.0
  • github.com/gin-gonic/gin v1.9.1
  • github.com/golang-jwt/jwt/v5 v5.0.0
  • github.com/golang-migrate/migrate/v4 v4.16.2
  • github.com/jackc/pgx-gofrs-uuid v0.0.0-20230224015001-1d428863c2e2@1d428863c2e2
  • github.com/jackc/pgx/v5 v5.5.4
  • github.com/joho/godotenv v1.5.1
  • github.com/juju/ratelimit v1.0.2
  • github.com/mssola/user_agent v0.6.0
  • github.com/phayes/freeport v0.0.0-20220201140144-74d24b5ae9f5@74d24b5ae9f5
  • github.com/pkg/errors v0.9.1
  • github.com/redis/go-redis/v9 v9.3.0
  • github.com/spf13/cobra v1.8.0
  • github.com/spf13/viper v1.17.0
  • github.com/swaggo/files v1.0.1
  • github.com/swaggo/gin-swagger v1.6.0
  • github.com/swaggo/swag v1.16.2
  • github.com/xuri/excelize/v2 v2.8.0
  • go.uber.org/zap v1.26.0
npm
web/package.json
  • @chakra-ui/icons ^2.1.1
  • @chakra-ui/next-js ^2.2.0
  • @chakra-ui/react ^2.8.2
  • @chakra-ui/theme-tools ^2.1.1
  • @emotion/react ^11.11.4
  • @emotion/styled ^11.11.5
  • axios ^1.1.2
  • date-fns ^2.29.3
  • formik ^2.2.9
  • framer-motion ^11.1.7
  • gsap ^3.12.5
  • jotai ^2.0.2
  • lodash ^4.17.21
  • next ^14.2.2
  • react ^18.2.0
  • react-dom ^18.2.0
  • react-icons ^4.4.0
  • swr ^2.1.5
  • yup ^1.0.0
  • @cloudflare/next-on-pages ^1.1.1
  • @types/node 20.10.5
  • @types/react 18.2.21
  • @types/react-dom 18.2.7
  • @types/yup ^0.29.11
  • @typescript-eslint/eslint-plugin ^6.0.0
  • eslint 8.54.0
  • eslint-config-prettier ^9.1.0
  • eslint-plugin-react ^7.33.2
  • eslint-plugin-react-hooks ^4.6.0
  • eslint-config-next ^14.2.2
  • prettier ^3.2.5
  • prettify ^0.1.7
  • sass ^1.55.0
  • typescript 5.2.2
  • vercel ^31.0.0

  • Check this box to trigger a request for Renovate to run again on this repository

add swagger ui support

swag

Swag converts Go annotations to Swagger Documentation 2.0. We've created a variety of plugins for popular Go web frameworks. This allows you to quickly integrate with an existing Go project (using Swagger UI).

download my blood pressures to an excel file

As a product manager, I want to provide users with the ability to download their blood pressures to an Excel file, so that they can easily analyze and track their health data.

User Story:

As a user, I want to be able to download my blood pressures to an Excel file, so that I can analyze and track my health data more effectively.

Acceptance Criteria:

  1. As a user, I should be able to initiate the download process to generate an Excel file containing the blood pressures.
  2. The Excel file should be created using the excelize library.
  3. The Excel file should include the following columns: Date, Time, Systolic Pressure, Diastolic Pressure, and Heart Rate.
  4. The blood pressures should be sorted in ascending order based on the date and time.
  5. The Excel file should be named in a user-friendly format, such as "User_Blood_Pressures.xlsx".

Additional Considerations:

The download functionality should be easily accessible within the user interface, such as through a button or a menu option.
Error handling should be implemented to handle cases where there are no blood pressures recorded for the selected user.
The download process should be efficient and not cause any significant delays or performance issues.

Note to the developer:

Please ensure that the download functionality is implemented using the excelize library to generate the Excel file. Consider using appropriate APIs and methods provided by the library to create the file and populate it with the blood pressure data.

Record Weight Information

Goal:

As a user, I want to be able to easily record my weight information to track and manage my health.

Description:

As a health-conscious user, I would like to effortlessly record my weight information in the app to keep track of changes. This will help me better understand my health status and set appropriate health goals.

Acceptance Criteria:

  1. When I log into the app, I should be able to find the "Record Weight" option on the main interface or in a dedicated health module.
  2. On the "Record Weight" page, I should be able to input my weight information.
  3. After entering weight information, I can choose to save or submit to record this weight entry.
  4. I should be able to view the historical record of weight information to track trends.
  5. The system should provide concise charts or statistics to help me visually understand the trend of weight changes.
  6. I would also like to set weight goals and receive relevant reminders or suggestions to help me achieve my health objectives.

upgrade our Next.js to version 14

Description:

As a developer, I want to upgrade our Next.js application to version 14 in order to benefit from the performance optimizations and feature enhancements of the new version.

User Story:

As a developer, I want to upgrade our Next.js application to version 14 to improve the performance and user experience of our application. To achieve this goal, I need to complete the following tasks:

  1. Research the changes and improvements in Next.js version 14 to understand the new features and advantages.
  2. Check our application code and dependencies to ensure compatibility with Next.js version 14. If there are any code or dependency issues that are not compatible with the new version, they need to be addressed and updated accordingly.
  3. Follow the upgrade guide provided by Next.js to incrementally update our application code and configuration. This may involve updating API calls, adjusting routing configurations, modifying styles, and other necessary changes.
  4. Run tests to ensure that our application remains stable and correct after the upgrade to Next.js version 14. This includes unit tests, integration tests, and end-to-end tests to validate the functionality.
  5. Perform performance testing and optimization to leverage the performance improvements offered by Next.js version 14, enhancing the loading speed and responsiveness of our application.
  6. Update our documentation and training materials to enable team members to quickly understand and adapt to the changes and new features introduced in Next.js version 14.
  7. Stay updated with the Next.js community and official documentation to learn about the latest updates and bug fixes in the new version, and apply them to our application in a timely manner.
  8. Promote and introduce the improvements and advantages of Next.js version 14 to team members, enhancing the development efficiency and user experience of our team.

Acceptance Criteria:

  • The application is successfully upgraded to Next.js version 14 and functions properly.
  • The performance of the application is improved, with noticeable enhancements in loading speed and responsiveness.
  • Code modifications and configuration adjustments made during the upgrade process are thoroughly tested and do not introduce new bugs or issues.
  • Documentation and training materials are updated, enabling team members to quickly understand and adapt to the changes and new features of Next.js version 14.
  • Team members are aware of the improvements and advantages of Next.js version 14 and can effectively utilize the new version to enhance development efficiency and user experience.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.