adwas33

Befit Dokumentacja

May 1st, 2022
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.26 KB | None | 0 0
  1. # BeFit
  2.  
  3. ## _Application to track and reduce weight_
  4. ---
  5. BeFit is a client-server application which you are able to run either on your own browser or phone. Not only will this application motivate you to make the progress, but also improve an avareness about the healthy lifestyle.
  6.  
  7. ## Features
  8. ---
  9. - Check places where you can work out near your neighborhood
  10. - Check caloric demand based on your weight, height,age and gender
  11. - Calculate BMI based on your personal data
  12. - Calculate how much activities you have to spend to burn insetred callories .
  13. - Check both calories and nutritional value contained in food you consume
  14. - Register new user
  15. - Login with session
  16.  
  17. ##### Functions only for registered users:
  18. ---
  19. - Weight and date insertion
  20. - Linear weight progress
  21.  
  22. ## Tech stack
  23. ---
  24. BeFit uses the following technologies:
  25. - [Java] - Popular crossplatform object oriented programing language
  26. - [JakartaEE] - Jakarta EE is a collection of specifications made for creating applications in the standarized method
  27. - [Servlets]- Jakarta Servlet defines a server-side API for handling HTTP requests and responses.
  28. - [JSP] - Similar to HTML files but with ability to insert there Java code .
  29. - [JSTL] - Liblary for tags used to remove scriptlets
  30. - [TOMCAT] - Application serwer on whose app is running
  31. - [CSS] - Styles to improve website appearance
  32. - [Bootstrap] - Framework for CSS ready for use
  33. - [JS] - Script language which can be launched on browser used to user interaction .
  34.  
  35. ## System and software requirements
  36. ---
  37. To run this application it is nessesary to have:
  38. - Java 14 or newer
  39. - Tomcat 10.0.02
  40.  
  41. Optionally if you want to edit and recompile the code it would be nessesary to have JDK with equivalent version of Java.
  42. ### Instruction of application deployment
  43. ----
  44. To be honest I would recommend to use IntelliJ idea in order to run the application after you configure IDE.
  45.  
  46. But there are other ways to run this application. I will describe only one of them.
  47. Firstly you have to compile my application using maven by folowing commands:
  48. ```sh
  49. mvn clean
  50. mvn package
  51. ```
  52. Then you have to copy *.war file to the folowing folder <WHERE_TOMCAT_WERE_INSTALLED>/webapps
  53. After that it is necessary to run the script from place <WHERE_TOMCAT_WERE_INSTALLED>/bin by command.
  54. ```
  55. catalina.bat run
  56. ```
  57. Now the application should be present at browser at following address:
  58. ```
  59. <LOCALHOST>::<PORT_WHERE_TOMCAT_IS_RUNNING>/<NAME_OF_WAR_FILE>
  60. ```
  61. ![Deployed app](https://i.imgur.com/2IpeMNO.png)
  62.  
  63. As we can see application is running .
  64. ## Presentation
  65. ---
  66. - _*Main page*_
  67. ![Main page 1](https://i.imgur.com/Tl2gifJ.jpg)
  68. ![Main page 2](https://i.imgur.com/ago7ozD.png)
  69. - *Check callory in food*
  70. ![CheckCall1](https://i.imgur.com/mYU9XsE.png)
  71. ![CheckCall2](https://i.imgur.com/00M6MKm.jpg)
  72. ![CheckCall3](https://i.imgur.com/NImc9q7.jpg)
  73. - *List of gyms*
  74. ![List of gyms1](https://i.imgur.com/GkK1qsW.png)
  75. ![List of gyms2](https://i.imgur.com/daW9n6E.png)
  76. - *Calculate BMI*
  77. ![Calculate BMI1](https://i.imgur.com/2THvI3W.png)
  78. ![Calculate BMI2](https://i.imgur.com/wOwoUqW.png)
  79. - *Calculate calories to activity*
  80. ![Calculate calories to activity1](https://i.imgur.com/2CrIm2g.png)
  81. ![Calculate calories to activity2](https://i.imgur.com/kx5kc3P.png)
  82. - *Register*
  83. ![Register](https://i.imgur.com/hwnVzbY.png)
  84. - *Login*
  85. ![Login](https://i.imgur.com/4RIpZOX.png)
  86. - *Select action*
  87. ![Select action](https://i.imgur.com/zNSCbeT.png)
  88. - *Free weight insertion*
  89. ![Free weight insertion1](https://i.imgur.com/zdlxQuf.png)
  90. ![Free weight insertion2](https://i.imgur.com/JKr5z0y.png)
  91. ![Free weight insertion3](https://i.imgur.com/eaID7ya.png)
  92. - *Linear weight progres*
  93. ![Linear weight progres1](https://i.imgur.com/4hyijmN.png)
  94. ![Linear weight progres2](https://i.imgur.com/k1IDJ0C.png)
  95.  
  96. [JakartaEE]: <https://jakarta.ee/>
  97. [Java]: <https://www.java.com/pl/>
  98. [Bootstrap]: <https://getbootstrap.com/>
  99. [JSP]: <https://jakarta.ee/specifications/pages/3.0/>
  100. [JSTL]: <https://jakarta.ee/specifications/tags/2.0/>
  101. [TOMCAT]: <https://tomcat.apache.org/>
  102. [CSS]: <https://developer.mozilla.org/pl/docs/Learn/Getting_started_with_the_web/CSS_basics>
  103. [JS]: <https://developer.mozilla.org/en-US/docs/Web/javascript>
  104. [Servlets]: <https://jakarta.ee/specifications/servlet/5.0/>
Add Comment
Please, Sign In to add comment