An install script and a master plan

domesticat's picture

Geof likes to remind me that all journeys begin with a single step. 

This journey:  I began coding on Quarto today.  The pseudocode is essentially done, Gareth has been kind enough to write a conversion script, and my database schema looks about as final as it’s going to get.  In other words, I know what I’ve gotta do; now’s the time to sit down and just start writing the blasted thing.Today’s single step was writing the installation script.  It wasn’t terribly difficult, but it did take a little longer than I thought it would.  At its most basic, these three pages are simple PHP scripts that issue commands to a database.  They create the tables that Quarto needs, set up a default site, and set up a default user…named Tenzing. 

(Call it my apology to the needy 12-pound kitty who is none too sure that he approves of the time I spend on the computer.  I figure the least I can do is spread his name around a little bit.)

I’m pretty glad to finally get started on this project.  I’ve been chomping at the bit for the past week or so, thinking I was ready to go and that I should start the next day.  I sat down two days ago and took a long, hard look at my prep work.

"If it’s essentially unchanged by Wednesday," I thought, "I’ll start coding then."

In the meantime, I had one change yesterday, and one addition today.  Minor stuff.  This morning, when I began to look at the code, I knew it was time to get started. 

It turned out to be not quite so difficult as I’d expected.  As expected, I went back to my database-manipulation code I wrote to maintain my external pages on cat.net, and found that a good chunk of it applied in this case.  I adapted it, spruced up the error-checking, and a few hours later…voilà, an installation script.

Next up will be the actual login script.  Creating it is not difficult, but locking it down and making it bulletproof is another matter altogether.  I will end up spending a good deal of time on user authentication, and the navigation bar that will run across the top of every admin page.  Do these two correctly—and securely—and the skeleton for the entire admin section will be sound.  Each page of the admin interface can then be developed mostly independently of all the others (there are exceptions, of course).

Finishing those two bits will be a serious, significant milestone.  Until then…I’ve got an install script, and a devious little master plan, and a twelve-pound kitty who doesn’t understand anything about install scripts—and who just really wants to be cuddled.

gfmorris's picture

Let me heap more thanks upon Gareth's head. :) At least you can plan. I'm always stuck on Plan A. :D Go cuddle thy cat. Otherwise, he may smother you while you sleep ...
Noah's picture

Way to go. =)
canspice's picture

A big first step. :)
kat's picture

Congrats on getting going! Hope the journey is a good one.

Post new comment

User login

Recent comments

  • Anonymous 3 days 11 hours ago [view]
  • Charli 2 weeks 3 hours ago [view]
  • quiltmom anna 3 weeks 3 days ago [view]
  • rslatkin 3 weeks 5 days ago [view]
  • Donna 3 weeks 6 days ago [view]

Search

Hello, anonymous!

If you're seeing this, you're not logged in. A lot of content here is only visible if you're logged in, and comments by anonymous users are held for moderation. Consider getting an account to save yourself some frustration?

domesticat.net

is the home of Amy Qualls-McClure since 2000. She is a Drupal / quilt geek in Huntsville, Alabama. One spouse, two cats, no kids, lots of opinions.

Public account for work and Drupal stuff: Private account for friends and personal life:

me on plurk me on drupal.org my music habits on last.fm my photos on flickr my bookmarks on del.icio.us my bookmarks on pinboard.in Amy Q. on foursquare what I'm reading

Some content is locked. Copy these links AFTER logging in for a query string giving you full feed-reader access:

Atom feed, entries RSS feed, entries RSS feed, comments