Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wajeht/gains
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.4
Choose a base ref
...
head repository: wajeht/gains
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.0.5
Choose a head ref
Loading
Showing with 5,190 additions and 690 deletions.
  1. +1 −0 .dockerignore
  2. +40 −29 .env.example
  3. +2 −0 .gitignore
  4. +11 −1 .vscode/settings.json
  5. +111 −0 CHANGELOG.md
  6. +2 −0 Dockerfile.prod
  7. +16 −2 Makefile
  8. +1 −0 README.md
  9. +21 −4 docker-compose.dev.yml
  10. +18 −0 nodemon.json
  11. +1,167 −119 package-lock.json
  12. +16 −7 package.json
  13. +81 −2 src/apps/api/admin/admin.controller.js
  14. +11 −1 src/apps/api/admin/admin.router.js
  15. +40 −0 src/apps/api/admin/admin.validation.js
  16. +6 −2 src/apps/api/api.middlewares.js
  17. +1 −1 src/apps/api/api.routes.js
  18. +30 −0 src/apps/api/auth/auth.controller.js
  19. +2 −1 src/apps/api/auth/auth.queries.js
  20. +18 −3 src/apps/api/auth/auth.validation.js
  21. +11 −1 src/apps/api/v1/api-keys/api-keys.controller.js
  22. +5 −0 src/apps/api/v1/cache/cache.controllers.js
  23. +18 −0 src/apps/api/v1/cache/cache.queries.js
  24. +4 −0 src/apps/api/v1/comments/comments.controller.js
  25. +9 −0 src/apps/api/v1/logs/logs.queries.js
  26. +46 −2 src/apps/api/v1/sessions/sessions.controller.js
  27. +167 −40 src/apps/api/v1/sessions/sessions.queries.js
  28. +7 −1 src/apps/api/v1/sessions/sessions.router.js
  29. +33 −0 src/apps/api/v1/sessions/sessions.validation.js
  30. +4 −0 src/apps/api/v1/sets/sets.queries.js
  31. +25 −0 src/apps/api/v1/tags/tags.controllers.js
  32. +11 −0 src/apps/api/v1/tags/tags.queries.js
  33. +19 −0 src/apps/api/v1/tags/tags.routes.js
  34. +46 −0 src/apps/api/v1/tags/tags.validations.js
  35. +122 −1 src/apps/api/v1/users/users.controller.js
  36. +73 −2 src/apps/api/v1/users/users.queries.js
  37. +48 −0 src/apps/api/v1/users/users.router.js
  38. +64 −0 src/apps/api/v1/users/users.validation.js
  39. +2 −0 src/apps/api/v1/v1.routes.js
  40. +10 −4 src/apps/api/v1/variables/variables.queries.js
  41. +4 −3 src/apps/api/v1/variables/variables.router.js
  42. +37 −1 src/apps/app.js
  43. +3 −1 src/apps/app.routes.js
  44. +37 −17 src/apps/cli/cli.js
  45. +15 −0 src/apps/cli/commands/check-prod.command.js
  46. +13 −0 src/apps/cli/commands/commands.js
  47. +39 −0 src/apps/cli/commands/help.command.js
  48. +394 −0 src/apps/cli/commands/users.command.js
  49. +12 −0 src/apps/cli/commands/version.command.js
  50. +110 −0 src/apps/cli/commands/view-logs.command.js
  51. +27 −0 src/apps/ui/App.vue
  52. +29 −0 src/apps/ui/app.vue.js
  53. BIN src/apps/ui/assets/images/charts-and-graph.png
  54. BIN src/apps/ui/assets/images/videos.jpg
  55. BIN src/apps/ui/assets/images/videos.png
  56. +303 −0 src/apps/ui/assets/styles/scss/custom.scss
  57. +10 −3 src/apps/ui/components/dashboard/DashboardFooter.vue
  58. +1 −0 src/apps/ui/components/dashboard/DashboardHeader.vue
  59. +1 −0 src/apps/ui/components/dashboard/Loading.vue
  60. +64 −0 src/apps/ui/components/dashboard/LogoutButton.vue
  61. +189 −16 src/apps/ui/components/dashboard/SessionDetails.vue
  62. +38 −16 src/apps/ui/components/dashboard/VideoDetails.vue
  63. +1 −0 src/apps/ui/components/dashboard/headers/Backheader.vue
  64. +1 −0 src/apps/ui/components/dashboard/headers/DashboardHomeHeader.vue
  65. +1 −0 src/apps/ui/components/dashboard/headers/SessionDetailsHeader.vue
  66. +1 −0 src/apps/ui/components/dashboard/headers/VideosAndProfileHeader.vue
  67. +51 −30 src/apps/ui/components/regular/RegularHeader.vue
  68. +63 −60 src/apps/ui/components/shared/Contact.vue
  69. +23 −10 src/apps/ui/components/shared/Login.vue
  70. +27 −9 src/apps/ui/components/shared/Signup.vue
  71. +41 −7 src/apps/ui/index.html
  72. +6 −0 src/apps/ui/layouts/DashboardLayout.vue
  73. +88 −31 src/apps/ui/pages/dashboard/Community.vue
  74. +44 −21 src/apps/ui/pages/dashboard/Profile.vue
  75. +3 −0 src/apps/ui/pages/dashboard/SearchResults.vue
  76. +1 −1 src/apps/ui/pages/dashboard/Videos.vue
  77. +1 −0 src/apps/ui/pages/dashboard/sessions/Blocks.vue
  78. +2 −0 src/apps/ui/pages/dashboard/sessions/Categories.vue
  79. +3 −0 src/apps/ui/pages/dashboard/sessions/Exercises.vue
  80. +3 −3 src/apps/ui/pages/dashboard/sessions/Sessions.vue
  81. +266 −46 src/apps/ui/pages/dashboard/settings/Settings.vue
  82. +2 −2 src/apps/ui/pages/dashboard/settings/account/UserDetails.vue
  83. +1 −0 src/apps/ui/pages/dashboard/settings/data/ApiKeys.vue
  84. +7 −6 src/apps/ui/pages/dashboard/settings/others/Changelogs.vue
  85. +13 −14 src/apps/ui/pages/dashboard/tools/Tools.vue
  86. +3 −0 src/apps/ui/pages/dashboard/tools/others/BodyweightTracker.vue
  87. +3 −0 src/apps/ui/pages/dashboard/tools/others/Recovery.vue
  88. +2 −2 src/apps/ui/pages/regular/Features.vue
  89. +42 −47 src/apps/ui/pages/regular/ForgetPassword.vue
  90. +6 −2 src/apps/ui/pages/regular/RegularHome.vue
  91. +104 −77 src/apps/ui/pages/regular/ResetPassword.vue
  92. +16 −6 src/apps/ui/router.vue.js
  93. +7 −1 src/apps/ui/store/app.store.js
  94. +0 −5 src/bin/gains.js
  95. +3 −1 src/bin/kill-used-port.sh
  96. +0 −3 src/bin/run-dev.sh
  97. +5 −1 src/bin/server.js
  98. +2 −1 src/config/env.js
  99. +4 −2 src/config/knexfile.js
  100. +27 −0 src/database/migrations/20220928021627_tags.js
  101. BIN src/database/seeds/mock-data/bench.jpeg
  102. BIN src/database/seeds/mock-data/bench.mp4
  103. BIN src/database/seeds/mock-data/deadlift.jpeg
  104. BIN src/database/seeds/mock-data/deadlift.mp4
  105. BIN src/database/seeds/mock-data/squat.jpeg
  106. BIN src/database/seeds/mock-data/squat.mp4
  107. +0 −1 src/services/cron.service.js
  108. +22 −0 src/services/cron.services.js
  109. +30 −0 src/services/crons/happy-birthday.cron.js
  110. +14 −0 src/services/crons/reset-download-user-data.cron.js
  111. +11 −4 src/services/email.service.js
  112. 0 src/services/{templates → emails}/admin-account.html
  113. 0 src/services/{templates → emails}/blank.html
  114. 0 src/services/{templates → emails}/contact.html
  115. +18 −0 src/services/emails/download-user-data.html
  116. 0 src/services/{templates → emails}/forget-password.html
  117. 0 src/services/{templates → emails}/happy-birthday.html
  118. 0 src/services/{templates → emails}/new-changelog.html
  119. 0 src/services/{templates → emails}/partials/footer.html
  120. 0 src/services/{templates → emails}/partials/header.html
  121. +15 −6 src/services/{templates → emails}/template.js
  122. 0 src/services/{templates → emails}/verify-email.html
  123. +3 −0 src/services/job.services.js
  124. +227 −0 src/services/jobs/download-user-data.job.js
  125. 0 src/temp/.gitkeep
  126. +11 −0 src/utils/axios.cli.js
  127. +62 −0 src/utils/copy-mock-videos.js
  128. +70 −0 src/utils/generate-default-exercises.js
  129. +16 −0 src/utils/load-test.js
  130. +21 −11 src/utils/redis.js
  131. +5 −0 src/utils/scratch.js
  132. +140 −0 src/utils/seed-mock-training-data.js
  133. +7 −0 vite.config.js
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -6,3 +6,4 @@ docs
node_modules
.editorconfig
.env.example
*.csv
69 changes: 40 additions & 29 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,39 +1,50 @@
# database
DB_CLIENT="pg"
DB_PORT=5432
DB_HOST="localhost"
DB_USERNAME="database_username"
DB_PASSWORD="database_password"
DB_DATABASE="database_name"
DB_URL="postgres://url-123345-here"
DB_CLIENT=
DB_PORT=
DB_HOST=
# DB_HOST="postgres" // use this for docker
DB_USERNAME=
DB_PASSWORD=
DB_DATABASE=
DB_URL=

# node
PORT=3000
VUE_PORT=3001
ENV="development"
COOKIE_SECRET="this is a secret"
COOKIE_EXPIRATION=4
JWT_SECRET="this is not a secret"
PASSWORD_SALT=8
PORT=
VUE_PORT=
ENV=
COOKIE_SECRET=
COOKIE_EXPIRATION=
JWT_SECRET=
PASSWORD_SALT=
PINO_LOG_LEVEL=

# discord
DISCORD_ID=123456789
DISCORD_TOKEN="abcdefghijklmnopquestyvxy"
DISCORD_URL="https://discord.com/api/webhooks/abcdefghijklmnopquers"
DISCORD_ID=
DISCORD_TOKEN=
DISCORD_URL=

# email
EMAIL_HOST="smtp.email.com"
EMAIL_PORT=587
EMAIL_AUTH_EMAIL="email@email.com"
EMAIL_AUTH_PASS="password123"
EMAIL_HOST=
EMAIL_PORT=
EMAIL_AUTH_EMAIL=
EMAIL_AUTH_PASS=

# admin credentials
ADMIN_EMAIL="admin@email.com"
ADMIN_USERNAME="allkindsofgains"
ADMIN_PASSWORD="passord@234"
# admin
ADMIN_USERNAME=
ADMIN_EMAIL=
ADMIN_PASSWORD=

# domain
DOMAIN="https://allkindsofgains.app"
# caprover
CAPROVER_DOMAIN=
CAPROVER_PASSWORD=
CAPROVER_GIT_BRANCH_NAME=
CAPROVER_APP_NAME=

# others
PINO_LOG_LEVEL="info"
# prod
PROD_API_URL=
PROD_API_KEY=

# ssh
SSH_HOST=""
SSH_USERNAME=""
SSH_PRIVATE_KEY_PATH=""
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -107,3 +107,5 @@ src/public/index.html
src/public/upload/*
src/public/uploads/*
src/templates/tempCodeRunnerFile.js
*.csv
.DS_Store
12 changes: 11 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -5,6 +5,7 @@
"Avenir",
"axios",
"Backheader",
"birthdate",
"borderless",
"bwck",
"Caprover",
@@ -19,6 +20,7 @@
"eprs",
"fieldname",
"filesize",
"flushall",
"fontawesome",
"formkit",
"fortawesome",
@@ -40,6 +42,7 @@
"multistream",
"Myfitnesspal",
"notf",
"nuxt",
"onerm",
"papaparse",
"Persistedstate",
@@ -57,18 +60,25 @@
"rpes",
"sleepms",
"soapwa",
"socketio",
"SQUARESPACE",
"sveltekit",
"todos",
"Tuchscherer’s",
"unparse",
"unstyled",
"upperbody",
"uuidv",
"VIEWSTATE",
"Vite",
"Vuejs",
"vueuse",
"wajeht",
"wout",
"yanlon"
],
"typescript.tsdk": "node_modules/typescript/lib"
"dotenv.enableAutocloaking": false,
"editor.quickSuggestions": {
"strings": "on"
}
}
111 changes: 111 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -2,6 +2,117 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [0.0.5](https://github.com/allkindsofgains/gains/compare/v0.0.4...v0.0.5) (2022-10-04)

### Features

- added a button to change global theme ([3410bea](https://github.com/allkindsofgains/gains/commit/3410bea39c0d802913791045b8802650f42a065e))
- added a route to delete al lof user data ([c160e80](https://github.com/allkindsofgains/gains/commit/c160e80c12c3951c8b9b86263f23c2235803042b))
- added an api route to view todays log ([838259a](https://github.com/allkindsofgains/gains/commit/838259af66ce08c34a3f8226b55271f6bc9584ca))
- added app store loading on mount ([359f32e](https://github.com/allkindsofgains/gains/commit/359f32e3f53985a6823411d51db6d8ea00b5c95d))
- added check-auth for cli ([917f2b7](https://github.com/allkindsofgains/gains/commit/917f2b7bc56017337f4ca6ad7b5971b2c9596b3a))
- added cursor to switch label ([b04669b](https://github.com/allkindsofgains/gains/commit/b04669b57cd0ea7aa6200f6314ca29726ebd9176))
- added default status bar ([b4aa62d](https://github.com/allkindsofgains/gains/commit/b4aa62d7d42c8c2e9c3ed6b6260e12840f9c7656))
- added default status bar ([2fcf76f](https://github.com/allkindsofgains/gains/commit/2fcf76f0c7f28038ecefa15b041a64579ed142e9))
- added default status bar ([2527ec6](https://github.com/allkindsofgains/gains/commit/2527ec6b3bdd55eab182302adf9edd38ef61d314))
- added default status bar ([8365607](https://github.com/allkindsofgains/gains/commit/8365607faea22ebe88743610002b1522ab8ca7cb))
- added faker ([55fd70e](https://github.com/allkindsofgains/gains/commit/55fd70e2645ad359c8433c599344bc5903e86304))
- added logout button to settings page ([4017a30](https://github.com/allkindsofgains/gains/commit/4017a3087c712c050c16825ef1644efdfbc79cd6))
- added minimal-ui ([0982f72](https://github.com/allkindsofgains/gains/commit/0982f725c9b9c1e05fc0762e044d632532f4c964))
- added more cli ccmds for mock user data for dev env ([98a3f1d](https://github.com/allkindsofgains/gains/commit/98a3f1d94e522401430b6725aa0fb697e270f88b))
- added more dark them clases ([3f8f3f2](https://github.com/allkindsofgains/gains/commit/3f8f3f2044a88d02fa77be02ec6d810f7d594ce9))
- added more dark them classes ([599e874](https://github.com/allkindsofgains/gains/commit/599e8748393f50d9df3c70ae58c19ca25b9221bf))
- added more dark them classes ([0f1d7cc](https://github.com/allkindsofgains/gains/commit/0f1d7cc99fc05853ef220d1c5c579b0b12e1d292))
- added more dark them classes ([d2618ca](https://github.com/allkindsofgains/gains/commit/d2618ca32788dea5c43fcd40ab0feb042b0c6eba))
- added pagination for community page ([#223](https://github.com/allkindsofgains/gains/issues/223)) ([5159d37](https://github.com/allkindsofgains/gains/commit/5159d370789f6c9d03e4a258e8cd4b51b93112a7))
- added range for view log ([84e60f7](https://github.com/allkindsofgains/gains/commit/84e60f77edaa2fdf222eb2d3f479c619f03cbe8e))
- added show or hide password ([e8bf122](https://github.com/allkindsofgains/gains/commit/e8bf12249654a458ea6624cad52b3fc09ff9a03a))
- added show or hide password on signup page ([6357f40](https://github.com/allkindsofgains/gains/commit/6357f407bffa49ce285a490ec980fe227b37c91f))
- added show/hide password on reset password page ([1ebc9a7](https://github.com/allkindsofgains/gains/commit/1ebc9a7c8688d2e5319f71757718283d6f1571cf))
- added socket io log ([b55d453](https://github.com/allkindsofgains/gains/commit/b55d4534830d97f3ccafd2feee6eee9f78bd2bce))
- added spoof wapalizer and socket io ([62754fe](https://github.com/allkindsofgains/gains/commit/62754fe5fad02294ebf2826696e8fc11a5c00f0c))
- added styels to tags ([287f5af](https://github.com/allkindsofgains/gains/commit/287f5af1542c696db8fe4bb2011149acab43303b))
- added table tui ([9657010](https://github.com/allkindsofgains/gains/commit/965701083e97d00b645b64cb6131c646eb92b6e3))
- added the ability to generate mock data in dev env ([ada8f20](https://github.com/allkindsofgains/gains/commit/ada8f20321c0e35254dd7cddba60886b8a18a571))
- added the ability to request for download user data via api/ui ([#218](https://github.com/allkindsofgains/gains/issues/218)) ([ecdc85f](https://github.com/allkindsofgains/gains/commit/ecdc85f06878fd508b84cfc977242b482f148e1d))
- added the default exercises when a new person signup ([#208](https://github.com/allkindsofgains/gains/issues/208)) ([216006f](https://github.com/allkindsofgains/gains/commit/216006fb7b9c84404854dbfb7f6c8152d93d59af))
- added theme switcher ([65af25a](https://github.com/allkindsofgains/gains/commit/65af25afb711a063021858a9aa86920aedc84024))
- added v-auto-animate to alert box ([dfecce0](https://github.com/allkindsofgains/gains/commit/dfecce03d4af8cc0c6dd214ab5a3be11bfac59b6))
- added vue-query and protect api docs ([#221](https://github.com/allkindsofgains/gains/issues/221)) ([0875acf](https://github.com/allkindsofgains/gains/commit/0875acf8f532fe00cf2d6440f8573127a9aa023e))
- change btn styles on models ([29b08f2](https://github.com/allkindsofgains/gains/commit/29b08f201a906d390ccb3ec8af70a971e5f964e5))
- change theme auto on system ([4cc5336](https://github.com/allkindsofgains/gains/commit/4cc533664e3abf16d21a1ba270b7a0e6b69b065f))
- change theme auto on system ([381c5dc](https://github.com/allkindsofgains/gains/commit/381c5dc83a89ae87242ae6edfe67be730dd0079d))
- **cli:** account generation from cli ([#212](https://github.com/allkindsofgains/gains/issues/212)) ([14e3228](https://github.com/allkindsofgains/gains/commit/14e3228c917e6238933d82537021d3dd3b761e5e))
- **cli:** added a bunch of cli commands for user action ([#211](https://github.com/allkindsofgains/gains/issues/211)) ([c8ddf7a](https://github.com/allkindsofgains/gains/commit/c8ddf7a5362d88719e830e85a884595579b1cab8))
- cursor not disable working properly ([9c2eb63](https://github.com/allkindsofgains/gains/commit/9c2eb6307f7a8e2e00330df5610bc67e71bd41f3))
- disbale buttons until input forms are filled ([a30ee63](https://github.com/allkindsofgains/gains/commit/a30ee63908619c9be7cc49f3372c5fc0159c86e7))
- enable default exercises when generate a new demo user for dev env ([7ec6dc7](https://github.com/allkindsofgains/gains/commit/7ec6dc7c9d7e8024e9972f5d8a4d9ef41725c659))
- enable/disable community sessions in app settings ([#222](https://github.com/allkindsofgains/gains/issues/222)) ([7fbc8be](https://github.com/allkindsofgains/gains/commit/7fbc8be2777fb0176cf60425427695b39ffc1af6))
- fixed verified query was not bool ([00e96df](https://github.com/allkindsofgains/gains/commit/00e96df418accdb8888a4b280053a61ac7b122b2))
- hide footer menu bar text on mobile ([0f484de](https://github.com/allkindsofgains/gains/commit/0f484de365b876f434731135e2590183a2a0454b))
- improved show/hide password style and enable cursor disable on all button ([36bcebe](https://github.com/allkindsofgains/gains/commit/36bcebed9f5b6b521ca9bd18e9a48ff959e9145e))
- initial dark theme ([9ebc938](https://github.com/allkindsofgains/gains/commit/9ebc938a9789c081f32f981896fc1a6182378210))
- moved block id to the right ([3f2fffe](https://github.com/allkindsofgains/gains/commit/3f2fffebf5ffea4ce02f580f653827bad7925c77))
- only set videos to public / complete session randomly ([6b65262](https://github.com/allkindsofgains/gains/commit/6b65262af03a400b50c7b1f194eec69dd88f67c0))
- redirect to proper api/ui on 404 response ([#225](https://github.com/allkindsofgains/gains/issues/225)) ([d093689](https://github.com/allkindsofgains/gains/commit/d093689680d86ce04ebe0a786defe6962f202613))
- remove verify true ([d3eca60](https://github.com/allkindsofgains/gains/commit/d3eca601fa6a8c1387aeda2e0d3e4153d0896645))
- restore user data from a cli command ([#210](https://github.com/allkindsofgains/gains/issues/210)) ([1446900](https://github.com/allkindsofgains/gains/commit/144690017dbeb0b9356c3402b234b2b567e6c97d))
- scaffold mock-data-cli ([#215](https://github.com/allkindsofgains/gains/issues/215)) ([7cdd91e](https://github.com/allkindsofgains/gains/commit/7cdd91e5d0516e5c6cc1175ebfad33e025b2dcee))
- tag systems ([#224](https://github.com/allkindsofgains/gains/issues/224)) ([23a1144](https://github.com/allkindsofgains/gains/commit/23a1144d2dffe6bcfd5903d8b8139cd95d12e96d))
- the ability to add mock training data via cli/api ([#216](https://github.com/allkindsofgains/gains/issues/216)) ([14af59c](https://github.com/allkindsofgains/gains/commit/14af59c0923ff8bcd38d2883ce6d9ee68e7ce2ea))
- the ability to do modify services via running a cron ([#219](https://github.com/allkindsofgains/gains/issues/219)) ([163e97a](https://github.com/allkindsofgains/gains/commit/163e97ac645ea8e99890892607dea9c51549666d))
- the ability to include video when generating mock data ([#220](https://github.com/allkindsofgains/gains/issues/220)) ([dae04e6](https://github.com/allkindsofgains/gains/commit/dae04e60a4d177c010906d53aedbd53cadb16104))
- the ability to view logs via cli ([d57b270](https://github.com/allkindsofgains/gains/commit/d57b2707602c370c6b2e6bd3ed56998226441664))
- the ability to view prod/dev logs via cli commands ([#226](https://github.com/allkindsofgains/gains/issues/226)) ([6b7bb34](https://github.com/allkindsofgains/gains/commit/6b7bb347e5d24afda5ae49d0b5c652f6fc2a85e4))
- throw error back to controll when generater mock data ([057c4f2](https://github.com/allkindsofgains/gains/commit/057c4f2560f27c89f639fe979ab38f375de57329))
- throw error back to controll when generater mock data ([57fe283](https://github.com/allkindsofgains/gains/commit/57fe283cda335cf4bfe266fd2b1838b2f61c7b43))
- throw error back to controll when generater mock data ([c8d6839](https://github.com/allkindsofgains/gains/commit/c8d6839d9531960c8d695b35465489674df69270))
- udpate empty state on videos page ([3f06898](https://github.com/allkindsofgains/gains/commit/3f068987a1669137e367add977d33ca05d36e67d))
- udpated redis credentials ([2ecc7d3](https://github.com/allkindsofgains/gains/commit/2ecc7d3ab32e0617f81c2cd312c8581d5ecad190))
- update .env.example file ([078f370](https://github.com/allkindsofgains/gains/commit/078f3700919579dbd46dc92ef14ef585e829cf4e))
- updated cli help text and remove standalone restore-data cli command file ([d230dcc](https://github.com/allkindsofgains/gains/commit/d230dcc6c572411ded76219ba09b3d21ef7c8502))
- updated docker compose to include redis ([e5669f2](https://github.com/allkindsofgains/gains/commit/e5669f2d48986a14307e81a1e49c8378bbd6cd80))

### Bug Fixes

- added multiple prod keyword ([68c29f5](https://github.com/allkindsofgains/gains/commit/68c29f5cbf293bbd44f4d6d9db8739c2f7c743ec))
- added multiple prod keyword ([9dfadee](https://github.com/allkindsofgains/gains/commit/9dfadee02e360b444a050c297b20267084b86ca5))
- added multiple prod keyword ([8ec5704](https://github.com/allkindsofgains/gains/commit/8ec5704ab3fe101696539a595a7ab6078d5a9122))
- attempt to fix redis connection error ([213ad08](https://github.com/allkindsofgains/gains/commit/213ad08ead9fe902e2724a0806298faac5b9ea59))
- attempt to fix redis connection error ([edaf1c0](https://github.com/allkindsofgains/gains/commit/edaf1c0e51cb1c4e97145e092f8eebdbb79d513e))
- attempt to fix redis connection error ([e3ee498](https://github.com/allkindsofgains/gains/commit/e3ee498f58e36239f1b695ba3f6686f41dff2b83))
- attempt to fix redis connection error ([6250079](https://github.com/allkindsofgains/gains/commit/6250079f6cc305cdd067f41ffc9b441810bc259e))
- attempt to fix redis connection error ([2a9e958](https://github.com/allkindsofgains/gains/commit/2a9e958d9e8d950ebd8bfc1407e7f4b9a3750d74))
- attempt to fix redis connection error ([9cc319f](https://github.com/allkindsofgains/gains/commit/9cc319fde80d1d91f51bbb58c5e75be8d6952e30))
- attempt to fix redis connection error ([c69824e](https://github.com/allkindsofgains/gains/commit/c69824e7b678f88f6dc7d1db6d5e9f2c83d39ac4))
- bug causing cli demo user password wrong ([#214](https://github.com/allkindsofgains/gains/issues/214)) ([958e9de](https://github.com/allkindsofgains/gains/commit/958e9de4e032816f39d20f5c34fce3b78e7b4f2e))
- bug causing recovery query to not return ([a4671db](https://github.com/allkindsofgains/gains/commit/a4671dbade6adff1ce4c88427602a315d6940bdf))
- bug causing recovery query to not return ([802e266](https://github.com/allkindsofgains/gains/commit/802e26644d13d0b077dc1d6f24496a4536160588))
- bug causing user email not to recognize on cli ([ce07b92](https://github.com/allkindsofgains/gains/commit/ce07b92095de34592e8f2a678216d6db39657544))
- bugs causing recovery, calories not to return on single user ([#217](https://github.com/allkindsofgains/gains/issues/217)) ([ebe9f64](https://github.com/allkindsofgains/gains/commit/ebe9f6450a53125d56a5074ceb703db27c1ef0a8))
- cli commands for mocking user data ([eb838c8](https://github.com/allkindsofgains/gains/commit/eb838c8c7bf22288cd0fa8bc7fbf3ddf5fd4c6da))
- darkmode workingn properly now ([b9941d9](https://github.com/allkindsofgains/gains/commit/b9941d9cb2ebf2453f41272cfe9154b06d694906))
- darkmode workingn properly now ([9858a97](https://github.com/allkindsofgains/gains/commit/9858a9727c9c6fe3adad84f15303723a2d15f10c))
- fixed -1 when generating random data ([9a82b35](https://github.com/allkindsofgains/gains/commit/9a82b35bf195865f757b2b9feb9580988b971b5b))
- fixed cussor not allow ([7c46087](https://github.com/allkindsofgains/gains/commit/7c46087c399f6b06374f0d2dd145acfbfb2f0dcf))
- fixed padding was not avaialble on home page ([0dc4be8](https://github.com/allkindsofgains/gains/commit/0dc4be85693df88f254eb3e03638928510d711ca))
- fixed vite was not genrationg latest change on prod ([36bbaec](https://github.com/allkindsofgains/gains/commit/36bbaec4bab669321103ae5b93fe4ef08862bcc7))
- include sass as dependency ([b96332d](https://github.com/allkindsofgains/gains/commit/b96332d4734861d175086c679bc67245c8c72468))
- ios springs scrolling on safari ([e0f4996](https://github.com/allkindsofgains/gains/commit/e0f49962cc42d08c94caf58643cc7ed708140d6d))
- ios springs scrolling on safari ([5e5edcd](https://github.com/allkindsofgains/gains/commit/5e5edcd2b66be52a9ba24e7deae5502cb9dc66d4))
- ios springs scrolling on safari ([a3e51ce](https://github.com/allkindsofgains/gains/commit/a3e51ce3d747e5e32fc14ff8e5b43a0d0c44f32d))
- ios springs scrolling on safari ([0520a0c](https://github.com/allkindsofgains/gains/commit/0520a0c192885d0fff379c02fe8e2a17b048f17f))
- latest view log was not a number ([78dd35b](https://github.com/allkindsofgains/gains/commit/78dd35bbd364305abf357aaa67bcf95426892a4c))
- latest view log was not returning when 1 was given ([84189a5](https://github.com/allkindsofgains/gains/commit/84189a5730673de7268fcd6614bb997f8628d0f4))
- light mode theme by default ([be844ae](https://github.com/allkindsofgains/gains/commit/be844ae6299529bedb538165b82e8b8a368f6684))
- light mode theme by default ([0d04c58](https://github.com/allkindsofgains/gains/commit/0d04c58a12d2aa910ba6bb7d732d6b386efeb5e2))
- nginx error when deploy ([5d10c3e](https://github.com/allkindsofgains/gains/commit/5d10c3ecaacac4cfb0acca2983c633015dc11841))
- nginx error when deploy ([bed04da](https://github.com/allkindsofgains/gains/commit/bed04da3fa2a701c75bb74ce0fb6da848c9fc01a))
- only cache first session query and change btn color ([6e30aa0](https://github.com/allkindsofgains/gains/commit/6e30aa0e7517cdd178aaf48617ef7f4530ee5b1f))
- reduced image file size ([51b0f9e](https://github.com/allkindsofgains/gains/commit/51b0f9e43488ecc46a2494fe4c257e2eec215ed8))
- reduced image file size ([a014710](https://github.com/allkindsofgains/gains/commit/a0147109123dacdd388ba71491203809679ad69c))
- update community sessions after deleting a session ([703b8f0](https://github.com/allkindsofgains/gains/commit/703b8f0045e87cca449fe4f0e48e43bf1a94fd4b))

### [0.0.4](https://github.com/allkindsofgains/gains/compare/v0.0.3...v0.0.4) (2022-09-07)

### Features
2 changes: 2 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -12,6 +12,8 @@ RUN apk add ffmpeg

COPY ./ .

RUN npm run build:ui

EXPOSE 8080

CMD ["npm", "run", "start"]
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
run-dev:
run-dev-build-d:
docker compose --file ./docker-compose.dev.yml --env-file ./.env down -v --rmi all
docker compose --file ./docker-compose.dev.yml --env-file ./.env up -d --build

run-dev-build:
docker compose --file ./docker-compose.dev.yml --env-file ./.env down -v --rmi all
docker compose --file ./docker-compose.dev.yml --env-file ./.env up --build

run-dev:
docker compose --file ./docker-compose.dev.yml --env-file ./.env up

stop-dev:
docker compose --file ./docker-compose.dev.yml --env-file ./.env down

clean-dev:
docker compose --file ./docker-compose.dev.yml --env-file ./.env down -v --rmi all

shell-dev:
shell-dev-gains:
docker compose --file ./docker-compose.dev.yml exec gains sh

shell-dev-db:
docker compose --file ./docker-compose.dev.yml exec postgres sh

shell-dev-redis:
docker compose --file ./docker-compose.dev.yml exec redis sh
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@
- **GitHub actions** for CI/CD
- **Caprover with Docker** for for zero config deployment
- **[AutoAnimate](https://auto-animate.formkit.com/)** for drop-in animation
- **Redis** to cache some of the large queries


# 👨‍💻 Getting started
Loading