/FinalProject

A weight tracker is a web application designed to help users monitor and manage their weight.

Primary LanguageC#

FinalProject

Manoj Kumar Reddy Guttikonda : A00258697

Project Proposal

Proposal Pdf : proposal.pdf

Figma Design : https://www.figma.com/file/1hmDRLBpWPC4JyUEgCIKMp/ weight-tracker?node-id=0%3A1&t=jDz7Hb5CjXkF804w-1

Checkin 1

  • Created the solution folder and added the necessary projects in it.

  • started working on library project with data models and the rquired classes. The library project has some test cases with it.

  • Unit test has been started and some of the test cases was present as you see on the commits.

  • I'm using both the webAPI and WebUI projects and started working on it, the WebAPI contains the Home Controller to validate the user. The WebUI contain the views and the vewModels in it.

  • Integration test has been setup and some test cases were present on it for the login page and the register page, I'M using pycharm for my integration test.

  • [Note: readme file was deleted while i'm pushing my code today(April 11) so i need to update it again.]

Checkin 2

  • Added migrations, Login, register and user management was done via scaffolding, but I customized to have first name and last name stored as well.

  • My initial idea is to use firebase, but since it took too long I decided to go with the ASP.NET with idenity approach, since razorpages were quite straightforward and takes less time since there is easy support for easy scaffolding with entity framework.

  • All the quries are did in linq query to get user details.

  • Data attributes added for classes, like [Required].

  • Added unit test for login pages where it test the user datails.

Checkin 3

  • added more views and vew models in the webUI.

  • added integration test cases for most of the code and are tested using the pycharm.

  • Added ModelState.IsValid for server validation, added basic checks before CRUD operations.

  • Currently working on the comments that I get on previous checkin that using the IdentityDbContext for secure logins and trying to avoid the login models .

MVC controller test issues

followed this course and tried to add the test contollers but some of the test controllers don't work as expected. https://learn.microsoft.com/en-us/aspnet/core/mvc/controllers/testing?view=aspnetcore-7.0 The mock setup always throws an exception. Tried to find solutions on stackoverflow but none of them worked, tried out best.

Challanges faced and resolved

  • DB connection, resolved it.
  • stumbled across few issues while testing and then followed few youtube tutorial and as well as your classes and added tests.