davisc0801 / flexapp Goto Github PK
View Code? Open in Web Editor NEWTrainer/Client food logging application
Trainer/Client food logging application
As a Trainer
When I visit "/trainer/dashboard"
All clients have a percentage of days in the last week they met intake goals
Continuation from user story #6
As a Client
When I visit "/dashboard"
I see a link labeled "Message Your Trainer"
When I click that link
I am taken to a form to compose and send text message to my trainer.
As a Client
I have tracking options for sugar as well as fat, carbs, protein and calories
As a Trainer
When I visit "trainer/dashboard"
And I click on a client's card
I am taken to that users show page - "user/id"
As a User
When I visit the user's show page/dashboard
I see a notification that shows how many calories, fats, carbs and protein needed to reach the day's plan
This notification is updated when food is logged
As a User
When I visit the user's show page/dashboard
I see a link to view the user's weight over time
When I click on that link
I see a chart in terms of starting weight vs. target weight
Each point on the line chart is a logged weight over time
Each horizontal point is tagged with the date the data was logged
As a visitor
When I visit the meal logging page on "/meal/new"
I see a form to enter a meal name and portion size and time the meal was had
When I enter a recognized meal name and portion size and click "log meal"
I am redirected to "/dashboard"
And I see the newly logged meal on the page
As a user
When I visit the client's show page/dashboard
I see a link to view today's current breakdown
When I click the link
I am taken to a page showing a graph with four bars labeled calories, fat, carbs, and protein
All four bars have flags with a time showing the increase for each logged meal
As a client with a meal plan set by the trainer
when I visit "/dashboard"
And it is near a meal time (5am - 10am for breakfast, 11am-3pm for lunch, 4pm-9pm for dinner)
I see a suggested food that will help meet the calorie, fat, carbs and protein goals for the day
As a Trainer
When I visit "/trainer/dashboard"
I see a link named "Invite a client"
When I click the "invite a client" button
I am taken to a form to enter a client e-mail address
When I click "Submit"
The client receives an E-mail inviting them to join the app
As a Visitor
When I visit "/"
I see a splash page with a login link
I see a register link
I see an about page link
As a visitor
When I visit "/login"
I see a link to login using Google Oauth
I see a form to enter a username and password
After filling in the form and clicking "Login"
I am redirected to the user dashboard
As a Client
If it has been a week since my last weight update
I see a message to update my current weight in the app
When I click the link labeled "Log weight"
I am taken to a form to enter my current weight
When I enter a valid response and click submit
I am redirected to "/dashboard"
And I no longer see the message
Add graph
refer to #51
As a registered Trainer
On My Dashboard
When I click on a clients name
Then i'm on the clients show page
And I click the link to "Change Clients Meal Plan"
When I update and click "Update Client's Mealplan"
I'm now on the clients show page
And I see a message that I successfully edited this clients meal plan
Trainers should be able to create and update their clients meal plans.
When a client is entering a meal name - spaces throw an error.
As a Client
When I visit "/dashboard" at mealtime
I see a selection of meals to help me meet the intake goals
When I click on a meal
I receive an e-mail of the recipe
Setup CI through TravisCI
As a User
When I visit the user's show page/dashboard
I see a link to view a chart for long term meal logs
When I click that link
I see a chart showing my calorie intake vs my calorie intake goal
I see three links below the chart to change the data to fats, carbs and proteins
As a Trainer
When I visit "/trainer/dashboard"
I see a list of all client names
All clients have a percentage of days in the last week they met intake goals
As a Trainer
When I visit a client's show page "user/:id"
I see a link labeled "send a message to the client"
I am taken to "/message"
And I am able to fill out an e-mail or text to send the client
As a Visitor
When I visit "/about"
I see a page with info about the app
As a Trainer
When I visit "trainer/dashboard"
I see user cards that are color coded based on the target percentage over the last week
Users under 70% are displayed in red
Users between 70% and 85% are in yellow
Users over 85% are displayed in green
As a Client
When I visit "/dashboard" and have no statistic info
I see a message saying "Please enter starting information"
When I click the link labeled "Enter starting information"
I am taken to a form to enter my current weight, height, allergies and food preferences
As a registered client
When I'm on my dashboard
And I click 'send trainer message'
I am taken to a form to both send sms messages and emails
As a Client
When I visit "/dashboard"
I see a link labeled "Log A Meal"
When I click that link I am taken to a form to enter a meal name and portion size
Trainer should be able to see the same graphs a client can on their clients show page
As a visitor
When I visit "/login"
And I click on "Login using Google"
I am redirected to complete the Oauth process
After doing so, I am taken to the user dashboard
Currently default time on the meal log is hardcoded and assumed to be current time zone. Update to use client local time.
Add graph to section to display weight changes
refer to #51
This api will have two endpoints.
Getting food data from inputted meal and portion size
Getting meal plan based on trainer and client input
- food info endpoint
- deploy
- meals enpiont
As a Client
When I visit the meal logging page on "/meals/new"
I see a link labelled "Manually Add Meal"
When I click that link
I am taken to a form to enter meal name, calories, fat, carbs, and protein and time meal was had
When I enter that information and click "Log Meal"
I am taken to "/dashboard"
And I see the newly added meal
As a registered Client on my dashboard
I see a link to "See Trainer Meal Suggestions" (if i have a meal plan)
When I click the link "See Trainer Meal Suggestions"
I am taken to a page that shows recipes that match my meal plan
for each recipe i see name, calories, carbs, and protein per serving, as well as total serving amount
I also see a thumbnail picture and recipe link for each recipe
Write a good readme file
As a visitor
When I visit "/register"
I see a form to enter E-mail, Password and Name
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.