Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
117 commits
Select commit Hold shift + click to select a range
fa0582a
communication working
FlipGoncalves Oct 11, 2022
aa7d763
Fixes is Fitness Goals Page
Rafael-Remigio Oct 12, 2022
0adeada
Merge branch 'front_end' of github.com:BrunoRochaDev/SmartGains into …
Rafael-Remigio Oct 12, 2022
ac4b3f7
Solved page 2 Responsivness
Rafael-Remigio Oct 12, 2022
d7a5c8a
changes with frontend
FlipGoncalves Oct 12, 2022
078a8bd
Fixed Navigator to remove all Routes in login and create page
Rafael-Remigio Oct 12, 2022
356fd39
Start Workouts page
Rafael-Remigio Oct 12, 2022
6bed238
navbar working + other pages
icbaptista Oct 12, 2022
a4bf214
Linking Camera to frontend branch
Rafael-Remigio Oct 12, 2022
af95e2d
Camera page rotation fix
Rafael-Remigio Oct 12, 2022
d777c4e
modal for exercise instructions
icbaptista Oct 12, 2022
f03f8cd
index fixed
icbaptista Oct 12, 2022
b827309
Changed message handling
BrunoRochaDev Oct 13, 2022
bb63a6d
modal camera instructions
icbaptista Oct 13, 2022
4609a59
Camera page rotation
Rafael-Remigio Oct 13, 2022
9883cbd
Solved _processMessage issue
Rafael-Remigio Oct 13, 2022
071973b
fixing decoding + encoding exercise to backend
Rafael-Remigio Oct 13, 2022
2ea25d4
beautification + reps in front end + in-frame speach
icbaptista Oct 13, 2022
72443da
in-frame speach
icbaptista Oct 13, 2022
cb8a73f
not-in-frame warning
icbaptista Oct 13, 2022
e055be9
Fixed Train tab Scrollview
Rafael-Remigio Oct 13, 2022
ab4ebf2
Starting User Profile
Rafael-Remigio Oct 13, 2022
9c05915
database
FlipGoncalves Oct 13, 2022
cb9b5d1
Merge branch 'front_end' of github.com:BrunoRochaDev/SmartGains into …
FlipGoncalves Oct 13, 2022
109f7c2
Input user data to database update
Rafael-Remigio Oct 13, 2022
2a1ab97
changes
FlipGoncalves Oct 13, 2022
b859a57
400 error fix
Rafael-Remigio Oct 13, 2022
cbce1cb
Merge pull request #4 from BrunoRochaDev/backend
FlipGoncalves Oct 13, 2022
12bdc34
Various stuff
Rafael-Remigio Oct 13, 2022
558ab4d
post request input data
icbaptista Oct 13, 2022
1c98ada
Merge branch 'front_end' of github.com:BrunoRochaDev/SmartGains into …
Rafael-Remigio Oct 13, 2022
6f0dc07
Merge pull request #5 from BrunoRochaDev/front_end
FlipGoncalves Oct 13, 2022
c6c0622
docker database
FlipGoncalves Oct 13, 2022
4d6cdda
requirements
FlipGoncalves Oct 13, 2022
45d7fa3
Merge pull request #3 from BrunoRochaDev/imp/connection
FlipGoncalves Oct 13, 2022
f8de9a5
merge
FlipGoncalves Oct 13, 2022
26366b1
post request input data
icbaptista Oct 13, 2022
80ec0a6
changes
FlipGoncalves Oct 13, 2022
202f6c6
Merge branch 'release' into release-1
FlipGoncalves Oct 13, 2022
160e45d
requirements
FlipGoncalves Oct 13, 2022
8e8b462
MERGED
FlipGoncalves Oct 13, 2022
cd9f31f
DeadLift added
jteles277 Oct 13, 2022
b3c796f
Added Deadlift to exercices protocol
jteles277 Oct 13, 2022
3471795
New message for informing that the gesture has been detected
BrunoRochaDev Oct 13, 2022
7e4b80c
Rolled back changs
BrunoRochaDev Oct 13, 2022
6385fae
Statistics Charting Start
Rafael-Remigio Oct 13, 2022
57b0262
Getting lifting data
BrunoRochaDev Oct 13, 2022
206bbe2
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
BrunoRochaDev Oct 13, 2022
202bcf4
modal for report
icbaptista Oct 13, 2022
92a0c44
Data Updtate
jteles277 Oct 13, 2022
166bd05
Strength standarts statistics
BrunoRochaDev Oct 13, 2022
ba35565
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
BrunoRochaDev Oct 13, 2022
cfe39c9
Merge branch 'release-1' of https://github.com/BrunoRochaDev/SmartGai…
jteles277 Oct 13, 2022
6a84fb9
Merge branch 'release-1' of https://github.com/BrunoRochaDev/SmartGai…
jteles277 Oct 13, 2022
c127543
Cleaning data
jteles277 Oct 13, 2022
8c5a145
pubspec update
Rafael-Remigio Oct 13, 2022
90f1a53
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
Rafael-Remigio Oct 13, 2022
cda377a
database chanegs
FlipGoncalves Oct 13, 2022
4a4b9a5
changes
FlipGoncalves Oct 13, 2022
eb889f1
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
FlipGoncalves Oct 13, 2022
830d915
Button color fix
Rafael-Remigio Oct 13, 2022
d2cd6f7
modal for report fixed
icbaptista Oct 13, 2022
297322d
Fixes to statistics
BrunoRochaDev Oct 13, 2022
9069913
t push
BrunoRochaDev Oct 13, 2022
e394413
database changes
FlipGoncalves Oct 13, 2022
e0040e6
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
FlipGoncalves Oct 13, 2022
751df5b
changes in warning
icbaptista Oct 13, 2022
1cb4d2a
update model
jteles277 Oct 13, 2022
17b8f4f
model correction
jteles277 Oct 14, 2022
269e599
database update
FlipGoncalves Oct 14, 2022
2a37a68
changes
FlipGoncalves Oct 14, 2022
f325d39
merge
FlipGoncalves Oct 14, 2022
41c859e
database changes
FlipGoncalves Oct 14, 2022
79e0d00
more data
jteles277 Oct 14, 2022
f034ac2
Profiles Updates
Rafael-Remigio Oct 14, 2022
3a9505c
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
Rafael-Remigio Oct 14, 2022
1b378a9
update data
jteles277 Oct 14, 2022
5c63b85
Added 'youre better than x% at this exercise'
BrunoRochaDev Oct 14, 2022
66d8e31
Merge branch 'release-1' of https://github.com/BrunoRochaDev/SmartGai…
jteles277 Oct 14, 2022
0d7109c
changes
FlipGoncalves Oct 14, 2022
d93f41d
camera
FlipGoncalves Oct 14, 2022
f2a9c66
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
FlipGoncalves Oct 14, 2022
4ae6882
Discard error indexes
jteles277 Oct 14, 2022
3121ab7
Testing tts stuff
BrunoRochaDev Oct 14, 2022
1aa3316
Profile end i hope
Rafael-Remigio Oct 14, 2022
a946ee0
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
Rafael-Remigio Oct 14, 2022
7db761b
front update
jteles277 Oct 14, 2022
dd38077
Writing potential to db
BrunoRochaDev Oct 14, 2022
a5797ab
new_graphs
jteles277 Oct 14, 2022
eb21f1b
Statistics UI completed
Rafael-Remigio Oct 14, 2022
673107b
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
Rafael-Remigio Oct 14, 2022
c0b2f09
Statistics Completed
Rafael-Remigio Oct 14, 2022
4da1fa6
Evolution of time passed graph
Rafael-Remigio Oct 14, 2022
2a0f8d3
gif changes
FlipGoncalves Oct 14, 2022
206efe3
merge
FlipGoncalves Oct 14, 2022
e4d95fa
Sumario Executivo
BrunoRochaDev Oct 14, 2022
2231c73
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
BrunoRochaDev Oct 14, 2022
28a2476
gif changes
FlipGoncalves Oct 14, 2022
588acad
Merge branch 'release-1' of github.com:BrunoRochaDev/SmartGains into …
FlipGoncalves Oct 14, 2022
f5cd9d9
FINALLY
FlipGoncalves Oct 14, 2022
4ff1eaa
Cleaning up after the hackathon
BrunoRochaDev Oct 15, 2022
e846132
Example gifs
BrunoRochaDev Oct 15, 2022
d83a04d
Writing a proper readme
BrunoRochaDev Oct 15, 2022
f925b88
Examples to readme
BrunoRochaDev Oct 15, 2022
31564d2
fixes readme
BrunoRochaDev Oct 15, 2022
eb89258
Removed uneeded gifds
BrunoRochaDev Oct 15, 2022
5e70ee9
Added info about the hackathon
BrunoRochaDev Oct 15, 2022
b7c858b
Create Create Account UI.gif
Rafael-Remigio Oct 16, 2022
a49a58c
Create Select and Perform Exercise UI.gif
Rafael-Remigio Oct 16, 2022
f80dca3
Create Sumário_Executivo.pdf
Rafael-Remigio Oct 16, 2022
1396be5
Create .gitkeep
Rafael-Remigio Oct 16, 2022
be7e278
gifs Updated
Rafael-Remigio Oct 16, 2022
3a331ef
Delete Sumário_Executivo.odt
Rafael-Remigio Oct 16, 2022
be53dfb
Merge branch 'release-1' of https://github.com/BrunoRochaDev/SmartGai…
Rafael-Remigio Oct 16, 2022
69ee18d
Update README.md
Rafael-Remigio Oct 16, 2022
49d56e7
Update README.md
Rafael-Remigio Oct 16, 2022
b2a3f5a
Translated to portuguese
BrunoRochaDev Oct 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
155 changes: 155 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#
# Miscellaneous
*.class
*.lock
Expand Down Expand Up @@ -124,3 +125,157 @@ app.*.symbols
!**/ios/**/default.perspectivev3
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
!/dev/ci/**/Gemfile.lock

## Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
share/python-wheels/
*.egg-info/
.installed.cfg
*.egg
MANIFEST

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.nox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
*.py,cover
.hypothesis/
.pytest_cache/
cover/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py
db.sqlite3
db.sqlite3-journal

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
.pybuilder/
target/

# Jupyter Notebook
.ipynb_checkpoints

# IPython
profile_default/
ipython_config.py

# pyenv
# For a library or package, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
# .python-version

# pipenv
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
# However, in case of collaboration, if having platform-specific dependencies or dependencies
# having no cross-platform support, pipenv may install dependencies that don't work, or not
# install all needed dependencies.
#Pipfile.lock

# poetry
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
# This is especially recommended for binary packages to ensure reproducibility, and is more
# commonly ignored for libraries.
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
#poetry.lock

# pdm
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
#pdm.lock
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
# in version control.
# https://pdm.fming.dev/#use-with-ide
.pdm.toml

# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
__pypackages__/

# Celery stuff
celerybeat-schedule
celerybeat.pid

# SageMath parsed files
*.sage.py

# Environments
.env
.venv
env/
venv/
ENV/
env.bak/
venv.bak/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# mypy
.mypy_cache/
.dmypy.json
dmypy.json

# Pyre type checker
.pyre/

# pytype static type analyzer
.pytype/

# Cython debug symbols
cython_debug/ Flutter
9 changes: 9 additions & 0 deletions API/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Communication

### How to run
```bash
docker-compose up --build
```

### Webapp
[Url](http://localhost/)
2 changes: 2 additions & 0 deletions API/webapp/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Docker volumes
/volumes/mongo
33 changes: 33 additions & 0 deletions API/webapp/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: "3.7"

services:
flask:
build: ./flask
container_name: flask
restart: always
environment:
- APP_NAME=SmartGainsDatabase
expose:
- 8080

nginx:
build: ./nginx
container_name: nginx
restart: always
ports:
- "80:80"

mongo:
image: mongo:4.4.3
env_file: ./.env
container_name: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=$MONGO_ROOT_USERNAME
- MONGO_INITDB_ROOT_PASSWORD=$MONGO_ROOT_PASSWORD
- MONGO_INITDB_DATABASE=admin
volumes:
- ./volumes/mongo/data/db/:/data/db/
- ./volumes/mongo/log/:/var/log/mongodb/
expose:
- 27017
command: ["--bind_ip", "0.0.0.0"]
14 changes: 14 additions & 0 deletions API/webapp/flask/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Use the Python3.7.2 image
FROM python:3.7.2-stretch

# Set the working directory to /app
WORKDIR /webapp

# Copy the current directory contents into the container at /challenge
ADD . /webapp

# Install the dependencies
RUN pip3 install -r requirements.txt

# run the command to start uWSGI
CMD ["uwsgi", "app.ini"]
10 changes: 10 additions & 0 deletions API/webapp/flask/app.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[uwsgi]
wsgi-file = run.py
callable = app
socket = :8080
processes = 4
threads = 2
master = true
chmod-socket = 660
vacuum = true
die-on-term = true
5 changes: 5 additions & 0 deletions API/webapp/flask/app/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from flask import Flask, render_template

app = Flask(__name__, static_folder='static', static_url_path='')

from app import views
2 changes: 2 additions & 0 deletions API/webapp/flask/app/static/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /
14 changes: 14 additions & 0 deletions API/webapp/flask/app/templates/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8"/>
<title>404 - this page does not exist</title>
<style>
</style>
</head>
<body>
<h1>
404 Not Found
</h1>
</body>
</html>
Loading