thomas-elder / cs.weightlifting Goto Github PK
View Code? Open in Web Editor NEWA solution for managing weightlifting training data.
A solution for managing weightlifting training data.
Revisit documentation for this class.
Add endpoint for deleting an Athlete to the AthleteController, and method to AthleteManager.
Add delete endpoint to AccountController and method to AccountManager.
Build page for a logged in Coach User.
Standard nav, with the additional tabs for viewing a list of Athletes, and for each Athlete being able to view a list of their sessions.
Add documentation for this class.
Not sure the reasoning behind having the errors on all the DTOs be structured as dictionaries.
From the front end, you'd check the Success flag, if it were false, you'd be looking for errors to see how to handle it. So would you traverse keys first, then the messages? Am I likely to have multiple errors with different dict keys being returned? Certainly am not at the moment... Is this needlessly confusing?
Review and refactor.
Revisit documentation for this class.
When a user logs in to the Web app, a request will be sent to the login endpoint on the API. If the credentials are valid a JWToken will be returned as part of the response. Figure out how to parse this response to retrieve this key.
Currently just have the url we're hitting for the API hardcoded program.cs. This should be in the appsettings.json file for dev, so we can easily sub in the production config when the time comes.
Additionally the API port is being set by default somewhere, need to have control over this too.
Update project documentation. At this point revisiting the project, it's easy to see where gaps are in this regard, write them down here as they become apparent, then fix them.
Need to add documentation on managing the database. There's a document from a separate repo with a description of how to initialise/update the db, review this and add to the readme/wiki here.
Setup a basic endpoint for the API that just returns ok when hit, and doesn't require any auth. Just for testing the web app is able to contact the API.
Need to create a web side service which gets data from the API. This one for Coaches.
Need to create a web side service which gets data from the API. This one for Athletes.
At the moment the simplest way of doing this would be to have a radio for selecting which type of account you want to register, and then direct the registration request to the appropriate endpoint.
We have RegisterAthlete and RegisterCoach to work with, but these don't need to be separate registration pages. They both use the same UserRegistrationDTO.
As a starting point, set up a service that successfully contacts the API. The result of the interaction is unimportant at this point!
Build landing page for the web app, including nav. Need home, about, login. Once logged in we want home, about, log out.
Need to be able to identify and serve personal bests for each athlete, for each exercise, and by repetition number.
For example, I need to be able to ask for the highest weight lifted for 3 repetitions in the back squat. Additionally the date this was lifted should be returned.
Not sure if this requires a new table to compute and store personal bests as they happen, or something I could calculate on the fly for each request.
Deletion of Athletes and Coaches needs to be handled in the AccountController and AccountManager, as we want to remove the Athlete and the associated User at the same time.
Also need to look into how to expire the JWT if the current user deletes their account. We don't want them to have access from that point on.
The JWT needs to be attached to requests to authorized endpoints on the API.
Add delete endpoint to CoachesController and method to CoachesManager.
Review options and set up a basic web app to build upon.
Need to investigate testing the web services. Can this be done just like the unit tests for the api managers?
Build page for the logged in Athlete User.
Standard nav with home, about, log out. Also need sections for viewing a list of sessions, and adding a new session.
Need a known set of credentials for the API which I can use to request and test handling the JWT.
Investigate and implement logging into the API from the web app.
Re-write documentation for this class, with clear summaries and in depth explanations, make sure you understand how it works.
When a user logs into the API a JWT is returned, which allows them to access authorised endpoints.
From the WEB app I need to be able to accept this JWT, store it somewhere, and send it with successive requests to the API.
Add documentation for this class.
Add delete endpoint to SessionsController and method to SessionsManager.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.