Online Portal for Customized, Personalized Diet and Fitness Plan

Categories : All, Case Study, Healthcare, Retail / E-commerce

Client Requirement


Clients want to provide their customers with an amazingly easy and fun way of losing weight. It provides free diet plans based on an individual’s height, weight, age, gender level of activity and food.

Client required revamping the existing portal using the PHP technology. The existing website has performance issues and it was getting increasingly difficult to add new features on the go. Users would be allowed to register and create an account, fill a basic questionnaire and choose the desired diet plans and fitness plan. To efficiently manage weight loss, users should also be able to fill out their daily activities and view the results of each day on a dashboard. There would be a web based CMS for Administrator to manage registered users, fitness plans, diet plans, meals and food, exercise contact us subscribers, websites CMS content etc.

The required features included:
  • Develop a website for health and fitness using PHP technology.
  • Create dashboard as per user’s daily activity inputs.
  • Provide features for users to register and login.
  • Impeccable database performance that can handle huge amount of traffic without slowing the system
  • CMS features to ensure that an administrator can manage the registered users and the content on the website.

Project Challenges

Client required a complete revamp of the existing PHP website. The following challenges were faced while developing the project:
  • Developing a sturdy & dependable framework to support the real-time updating of content on the site.
  • Allowing the site to handle millions of users at the same time without slowing down.
  • Including SaaS Features (A domain wise site).
  • Migration of data from the old database to the new database.
  • Database design and database management with new features.
  • Including customized diet plans as per user inputs.
  • Customized fitness plans per user.

Technologies Used

Operating System & Server Management Linux OS, Multi-Server Architecture with Staging & Production Environment through Version Controlling releases, Server Optimization, Security & SSL Implementation, Scheduler for Back-ups, Alert Monitoring System Integration, Server Performance Tuning at regular intervals, Software Firewall Configuration & Maintenance
Development Tools & Environments Zend Framework 1.12, JQuery 1.10, Solr
Database MySQL 5.5, MYSQL Database Server, DB Clustering, DB Optimization, Master Slave Replication, Query Optimization, Scheduler for Backups


Project Leader 1
Developers 3
Designers 1
QA 1


The enormous structure of the website and the challenges involved necessitated the adoption of a four-tier approach that consisted of:
  • MySQL Server Database, Tables, Stored Procedures etc… incorporated within the database layer.
  • Conversion of data between incompatible type systems in databases and accessing data from the database for the Interface layer and Database Abstraction layer respectively.
  • All the business logic procedures for modules such as User Profiles, Invitations, Forums and Blogs etc… forming the Business Logic layer.
  • The GUI of the website formed by the User Interface layer.


N-tier architecture was adopted to efficiently meet the needs of the enormous website. Following are the layers involved which are loosely coupled with each other:
  • User Interface Layer: This will include the page level layer which will be accessing the other layers beneath to present the data.
  • Database Specific Layer: This acts as a bridge between the physical database and the business logic accessing the data.
  • Business Specific Layer: This acts as a bridge between the User Interface layer and database layer. This will contain all the business logic for the different components involved in the project.
  • Physical Database Layer: This includes My SQL with the tables, views and stored procedures etc.


The project was successfully concluded and PHP and MySQL 5 were used to accommodate the features that were requested by the client. Modules like User Profiles etc. were developed in PHP such that they can be executed directly from the UI layer. In order to most effectively access the database in an object-oriented context an interface translating the object logic to the relational logic was used to communicate with the relational databases in an object-oriented manner.An intermediary abstraction layer was created for accessing data from the database. Triggers were used only for complex updating and deletion of data from multiple tables and were entirely avoided with conditional syntax to ensure smooth performance of the website. The UI layer was kept free of any business logic with images, applications and data being called from their respective servers. Web usability guidelines were strictly followed during development and the interface was made easily navigable through judicious use of AJAX, CSS and HTML controls. The site was developed and fully functional within a span of 8 months.

[Total: 3    Average: 4/5]

Client Saying

The best thing about Brainvire is Compatibility. Whenever we have a query Brainvire is always ready (24*7) to take care...
Mr Craig Agranoff
Daniel Coburn, the president of gives the honest opinion regarding his experience working with Brainvire for developing his social...
Mr. Daniel Coburn
I just want to say it's truly worth investing in services of Brainvire. They gave me what I required and...
Mr. Vinay Saini
If you're starting a new business or want to upgrade an existing site, I strongly recommend Brainvire. The employees are...
Mr. Manjesh Singh
Chad Gundry, the CEO of says that he has worked extensively with Brainvire team since last 6 to 7...
Mr. Chad Gundry

Latest Happenings

  • 04 Oct 2016
    Brainvire Making great Strides with Symfony Development Services [ + ]
  • 29 Sep 2016
    Brainvire augments its List of Offerings with Magento Sears Integration Services [ + ]