Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 697617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:11:11+00:00 2026-05-14T03:11:11+00:00

I’ve decided to develop a database driven web app, but I’m not sure where

  • 0

I’ve decided to develop a database driven web app, but I’m not sure where to start. The end goal of the project is three-fold:

  1. to learn new technologies and practices,
  2. deliver an unsolicited demo to management that would show how information that the company stores as office documents spread across a cumbersome network folder structure can be consolidated and made easier to access and maintain and
  3. show my co-workers how Test Driven Development and prototyping via class diagrams can be very useful and reduces future maintenance headaches.

I think this ends up being a basic CMS to which I have generated a set of features, see below.

  1. Create a database to store the site structure (organized as a tree with a ‘project group’->project structure).
  2. Pull the site structure from the database and display as a tree using basic front end technologies.
  3. Add administrator privileges/tools for modifying the site structure.
  4. Auto create required sub pages* when an admin adds a new project.
    4.1 There will be several sub pages under each project and the content for each sub page is different.
  5. add user privileges for assigning read and write privileges to sub pages.

What I would like to do is use Test Driven Development and class diagramming as part of my process for developing this project. My problem; I’m not sure where to start. I have read on Unit Testing and UML, but never used them in practice. Also, having never worked with databases before, how to I incorporate these items into the models and test units?

Thank you all in advance for your expertise.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T03:11:12+00:00Added an answer on May 14, 2026 at 3:11 am

    I’m not sure where to start.

    We always start with the data model.

    having never worked with
    databases before, how to I incorporate
    these items into the models and test
    units?

    Ah, well, there’s the problem.

    You have to start with the data, because everything starts with the data.

    1. Write use cases. Your 5 technical requirements aren’t really very good use cases because there’s no Actor who interacts with a system. You need to write down the things an actor does — what the actor interacts with.

    2. Identify the objects that the actor interacts with. When in doubt, write down all the nouns in your use cases.

    3. Draw a picture of the classes that will implement those objects.

    4. Walk through your use cases to be sure that all the things an Actor needs to do are based on attributes of your class definitions. All the data an actor needs has to be in these classes, which will become tables in your database.

    Now, you have to start doing more technical work. You need a web framework with an ORM layer. You’re using PHP, so you’ll have to find a good framework for this. Cake or Doctrine or something.

    1. Define one class in your ORM layer. You don’t have to be complete or precise, you just need something that you can test with.

    2. Write unit tests for this class to be sure that it has the right data elements. This will be relatively simple at first, since your individual data classes will start out simple.

    Once the basic set of classes are defined, you’ll need to look at relationships among classes. This is where the real work starts.

    1. Look at a relationship in your picture. Any line. Pick one randomly.

    2. Write unit tests to be sure that you can “navigate” across that line. From one object, fetch the related objects at the other end of the line. This shouldn’t be very complex, just a few lines of code.

    3. Create a “fixture” — test data you can load into a database — to represent the objects and their relationships.

    4. Run the test. If it breaks, update your ORM definitions to support the navigation properly.

    When you’ve finished doing all the various relationships, you will have built a reasonable complete data model in a Test-Driven manner.

    Now you can build your PHP presentation for the model objects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seemingly simple, but I cannot find anything relevant on the web. What is the
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
Specifically, suppose I start with the string string =hello \'i am \' me And
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
I need to clean up various Word 'smart' characters in user input, including but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.