An express.js application using mySQL and Sequelize database structures. Users can create and store profiles containing their personal health goal indices alongside a log of their daily meals with calorie intake calculations.
User data is secured with their passwords at login.
- node.js
- mySQL
- npm Express.js
- npm express-session
- npm connect-session-sequelize
- npm handlebars
- npm express-handlebars
- npm dotenv
- npm bcrypt
To use KiloCalorie, visit the deployed application at KiloCalorie Deploy on Heroku. The repository can also be cloned onto your local machine, and requires the install of node.js, mySQL and npm packages. Follow instructions on node.js website and mySQL site, then by running the following from your CLI in the cloned repository's folder:
> npm i
After establishing your mySQL user settings, setup the database via the following:
> USE calorie_tracker_db;
> source db/schema.sql;
> exit;
Create a .env file in the root of your new app folder and enter:
DB_NAME='calorie_tracker_db'
DB_USER='< your mysql username >'
DB_PW='< your mysql password >'
DB_SECRET='< your chosen cookie secret text >'
Run your local KiloCalorie by executing npm start
from the command line.
The landing page for KiloCalorie. Click the Go! button to begin!
On the login and register page, users must first register with their personal health information and goals. All future visits will require a login.
Once in the calorie tracking section, a user can add, update, and delete daily food items. All added food items are added to the daily calorie total and displayed at the bottom of the screen. The logout button allows the next user to create their personal profile and begin adding their own protected health information and daily caloric intake.
This project was created using MIT license.
This is an open source project.
Future deployments to calculate BMI, track health data, and apply data gathered from wearables is forthcoming.
To test the program, please follow above Installation guide.
This program was created by:
Brandon Pena on Github
Sunita Maharaj Persad on Github
ru3ykat on Github
Vanessa Sylverain on Github