Build octofit app - Add registration validation and more activities#2
Merged
lgpearson1771 merged 9 commits intomainfrom Apr 8, 2025
Merged
Build octofit app - Add registration validation and more activities#2lgpearson1771 merged 9 commits intomainfrom
lgpearson1771 merged 9 commits intomainfrom
Conversation
… project/app, update Django project/app files, and populate the MongoDB database
…d start OctoFit Tracker app
There was a problem hiding this comment.
Copilot reviewed 34 out of 39 changed files in this pull request and generated 1 comment.
Files not reviewed (5)
- octofit-tracker/backend/requirements.txt: Language not supported
- octofit-tracker/frontend/.gitignore: Language not supported
- octofit-tracker/frontend/package.json: Language not supported
- octofit-tracker/frontend/public/favicon.ico: Language not supported
- octofit-tracker/frontend/public/index.html: Language not supported
Comments suppressed due to low confidence (1)
octofit-tracker/backend/octofit_tracker/management/commands/populate_db.py:41
- Passing users[0].dict into the EmbeddedField may lead to unexpected issues. It is recommended to pass the model instance (e.g., users[0]) directly or use an appropriate serialization method.
Activity(id=ObjectId(), user=users[0].__dict__, type='Cycling', duration=60),
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request includes significant updates to the
octofit-trackerproject, adding backend functionality with Django and frontend setup using Create React App. The key changes involve setting up the Django project, defining models, views, serializers, and adding initial frontend configuration.Backend Changes
Django Setup and Configuration:
manage.pyto run administrative tasks and configured ASGI and WSGI for the project (octofit-tracker/backend/manage.py,octofit-tracker/backend/octofit_tracker/asgi.py,octofit-tracker/backend/octofit_tracker/wsgi.py). [1] [2] [3]djongo(octofit-tracker/backend/octofit_tracker/settings.py).Models and Admin:
User,Team,Activity,Leaderboard, andWorkoutusingdjongofor MongoDB integration (octofit-tracker/backend/octofit_tracker/models.py).octofit-tracker/backend/octofit_tracker/admin.py).Database Population and API:
octofit-tracker/backend/octofit_tracker/management/commands/populate_db.py).octofit-tracker/backend/octofit_tracker/serializers.py,octofit-tracker/backend/octofit_tracker/views.py). [1] [2]octofit-tracker/backend/octofit_tracker/urls.py).Testing:
octofit-tracker/backend/octofit_tracker/tests.py).Frontend Changes
Initial Setup:
octofit-tracker/frontend/package.json).octofit-tracker/frontend/README.md)..gitignoreto exclude unnecessary files (octofit-tracker/frontend/.gitignore).Assets:
octofit-tracker/frontend/public/favicon.ico).Dependencies
octofit-tracker/backend/requirements.txt).These changes set up the foundation for the
octofit-trackerproject, enabling backend functionality with Django and MongoDB, and frontend development with React.