DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Related

  • Upgrading a Database Project to Python 3.12
  • Build Quicker With Zipper: Building a Ping Pong Ranking App Using TypeScript Functions
  • The Best Node.js IDEs in the Market Right Now
  • 3 GPT-3 Tools for Developers, Software and DevOps Engineers, and SREs

Trending

  • Building a Spring AI Assistant With MCP Servers: A Step-by-Step Tutorial
  • Identity in Action
  • Building Threat Intelligence Pipelines Using Python, APIs, and Elasticsearch
  • 5 AI Security Incidents That Broke Things in Production (and What They Have in Common)
  1. DZone
  2. Data Engineering
  3. Databases
  4. Creating a Responsive CRUD MySQL Web App

Creating a Responsive CRUD MySQL Web App

See a tutorial on how one person created a CRUD application in three minutes. You can also view a video on the process.

By 
Thomas Hansen user avatar
Thomas Hansen
DZone Core CORE ·
Jul. 17, 18 · Tutorial
Likes (4)
Comment
Save
Tweet
Share
9.3K Views

Join the DZone community and get the full member experience.

Join For Free

Most developers, when confronted with a problem, will fire up their IDE and hammer their fingers onto their keyboards at a rate that makes machine gun sounds. Sometimes this is a good thing, and sometimes this is the equivalent of having a carpenter baking a pizza with his hammer.

To a man with only a hammer, everything looks like a nail.

How many CRUD apps do you think we have collectively created throughout the history of software development? How many do we really need? Don't you think there exists a generic solution to this problem that would allow you to save your precious fingertips for more important tasks? How many seconds do you think you'd really need to create a CRUD web app, wrapping a MySQL database, if you chose to use one of these prefabricated CRUD app generators instead?

Below is a screenshot of such a CRUD app that I created myself in three minutes. How many hours/days/weeks do you think you'd need to reproduce it if all you knew how to do was coding?

Image title

The above app renders responsively on your iPhone, Android, Tablet, and probably your mom's refrigerator if it has a browser. It was created in 3 minutes, and I can reuse it as a "plugin" in my web-based Integrated Development Environment (IDE) to see what things I need to implement for my upcoming release. The latter is done, by consuming it as an "extension widget" in another module, where I inject both my IDE and the above CRUD app as "widgets" into my single page Ajax based web page.

In this video, I demonstrate how I created the app.

If you watch the above video and create a Camphora Five CRUD app resembling the above, you can easily integrate your CRUD app into Hyper IDE, at which point your result will resemble the following.

Image title

Notice the TODO list at the bottom of my IDE above. In case you watch my video and you want to create your own "customized IDE" with your own TODO list at the bottom as I have done above, you can create a "Hello World" module as I do in the above video and exchange the code in its "launch.hl" file with the following code.

/*
 * Includes CSS for our module.
 */
micro.css.include
p5.web.include-css-file:@IDE/media/main.css
p5.web.include-css-file:/modules/todo/media/main.css

/*
 * Instantiating Hyper IDE as an "extension widget" on our page.
 */
create-widgets
  hyper-ide.widgets.ide
    class:container-fullscreen hyper-ide-container

/*
 * Instantiating our CRUD app in its own container/row/columns wire frame.
 */
create-widget
  class:container
  widgets
    div
      class:row
      widgets
        div
          class:col-100
          widgets
            camphora.todo.widgets.datagrid
              edit:bool:true
              delete:bool:true

30 lines of code, and VOILA! You've got your own customized IDE. Not too bad for a 10-minute coding session. If you want to include the toolbar for your CRUD app, you can probably easily add it yourself — at which point you can also filter and page in your CRUD plugin widget.

Do you believe that you could solve the above problem more easily by coding it yourself?

Let me know in the comments section below. 

Download Phosphorus Five

app Integrated development environment MySQL

Opinions expressed by DZone contributors are their own.

Related

  • Upgrading a Database Project to Python 3.12
  • Build Quicker With Zipper: Building a Ping Pong Ranking App Using TypeScript Functions
  • The Best Node.js IDEs in the Market Right Now
  • 3 GPT-3 Tools for Developers, Software and DevOps Engineers, and SREs

Partner Resources

×

Comments

The likes didn't load as expected. Please refresh the page and try again.

  • RSS
  • X
  • Facebook

ABOUT US

  • About DZone
  • Support and feedback
  • Community research

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 215
  • Nashville, TN 37211
  • [email protected]

Let's be friends:

  • RSS
  • X
  • Facebook