Skip to content

pragadesh-k/fitness-friend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fitness Friend

Fitness friend is an web application that helps to calculate and track calories of the day.

  • It has an calorie calculator which helps user to find their calorie target based on their diet goal.
  • It has an tracker with an calorie counter which changed based on the added or removed food items of their respective calorie content.
  • It has an search page where users can find the food items they want to add to the tracker.

Technologies and Frameworks

  • It is developed using React JS, CSS, Bootstrap, React-Bootstrap.
  • Json is used to store and manipulate the application data.

Components

  • App - The parent component for all. Maintains the application state and contains number of methods for the app’s functionality. It is Configured with routes.​

  • Login - It have the markup for the login page and maintains the state of login form.​

  • SignUp - It have the markup for the Sign up page and maintains the state of sign up form.​

  • Dashboard - It is the layout components which has header, side navigation bar, render tracker or health-calculator or search-page based on the route path. ​

  • Tracker - It has the markup for tracker and a form which takes user’s calorie target for the day. It contains all the food items under its respective meal category.​

  • Health-calculator - It helps the user to find their BMI, BMR, Target Calorie, Target Macro Nutrients.​

  • Search- It provide the food items that user wants to add to the tracker. ​

Routes

  • Login - http://localhost:3000/login​

  • SignUp - http://localhost:3000/sign-up​

  • Tracker - http://localhost:3000/dashboard/tracker​

  • Health Calculator - http://localhost:3000/dashboard/health-calculator​

  • Search - http://localhost:3000/dashboard/search-item​

Json server endpoints

  • http://localhost:8000/food-items

  • http://localhost:8000/users​

  • http://localhost:8000/profiles​

Application Flow

Flow diagram

Json data design

Json Schema

Application Screenshots

login

Login page

Sign up

Signup Page

Invalid Login Credentials

Login page. Invalid Credentials

Account not created

Signup Page. Account not created

Account created

Signup Page. Account created

Tacker form

Tacker form

Tracker

Tracker

Search page

Search page

Tracker

Tracker

Tracker

Tracker

Calorie Calculator

Calorie Calculator

Calorie Calculator result

Calorie Calculator result

Clone project

git clone https://github.com/pragadesh-k/fitness-friend.git

Install Dependencies

npm install

Setup Json Server

  1. npm install -g json-server
  2. json-server --watch data/db.json --port 8000

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Thank you.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published