Code Monkey home page Code Monkey logo

fit-mate's Introduction

FitMate


Demo Screenshots


Description

Link to the site FitMate is an app for everyone who loves exercising. FitMate is a one-stop app to track your excercises and calories burnt daily. Losing weight isn't easy - we know. Study after study has confirmed the benefits of keeping track of the exercise activity you do. It's simple - the more consistently you track your exercises, the more likely you are to lose weight. That's why every successful weight management program suggests that you keep an activity log. But recording all the exercises without the right tools can be tedious at best, or simply impossible at worst. Hence we developed FitMate.

Link to the Github repo Link to the Deployed site live on Heroku


Table of Contents


User Story

As a user,
I can add excercise details such as exercise type, duration weight,
THEN calories burnt are automatically calculated.
I can then view the leaderboard which displays the rank of the users by clicking the Leaderboard button,
THEN the details of the users is dispayed in a rank format dipalying sorted by the highest cla.


Features

  • Restful API created using Node.js and Express.js
  • Handlebar.js as the template engine
  • MySQL and the Sequelize ORM for the database
  • Impletementd GET, POST, PUT routes for retrieving, adding and updating new data
  • Folder structure meets the MVC paradigm
  • Include authentication - express session and cookies
  • API keys and sentitive information protected with environment variables
  • Deployed to Heroku with data
  • Responsive and polished UI
  • Interactive to user input

Technologies used

  • JavaScript
  • CSS3
  • Sequelize
  • Express.js
  • MySQL
  • NodeJS
  • Bootstrap
  • NPM
  • GitHub Version Control
  • CSS3
  • Sequelize
  • Express.js
  • MySQL
  • NodeJS
  • GitHub Version Control
  • Handlebars
  • MySql2
  • MVC
  • NPM

Usage

User can add the the type of exercises, duration and keep a track of the activity. The app will automatically calculate the calories burnt which will then be saved and viewed in the sxercise dashboard. In addition user will also be able to view the dashboard wihich have details of other users as well and will ranked as per them most calories burnt. This app assist the user to keep a track of their calories burnt and help achieve them thier desired fitness goals.


File structure

config/ // connection configuration
connection.js

controllers/ // Controller of MVC, routes definition
api/index.js
api/userRoutes.js
api/exerciseRecordRoutes.js
index.js
homeRoutes.js
dashboardRoutes.js
leaderboardRoutes.js

db/ // database
schema.sql

models/ // Model of MVC, Data model definition
index.js
User.js
Exercise.js
exerciseRecord.js

public/ // CSS files and Front end logic javascript files
css/jass.css
css/style.css
js/login.js
js/logout.js
js/profile.js
js/exercise.js

seeds/ // Website initial setup seed data
seed.js
userData.json
exerciseData.json
exerciseRecordData.json

utils/ // Helpfer function files
auth.js
helpers.js

views/ // View of MVC
layouts/home.handlebars
layouts/main.handlebars
partials/rank-details.handlebars
partials/record-details.handlebars
dashboards.handlebars
editProfile.handlebars
exerciseDisplayForm.handlebars
exerciseEditForm.handlebars
exerciseNewForm.handlebars
homepage.handlebars
leaderboard.handlebars
login.handlebars
signUp.handlebars

Contributors

Ray He
Kash Patel
ETTA Ho
The Univserity of Sydney | Trilogy Education Services


License

GitHub License

MIT License Copyright (c) [2021] [fit-mate] Permission is herby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limiation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject following coditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MECHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OF OTHER DEALINGS IN THE SOFTWARE.

fit-mate's People

Contributors

devrayhe avatar kashpateltech avatar etta0311 avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.