Sprint 2 - NexusLogica/N GitHub Wiki

Sprint 2: Save timing waveform to a database

The goal for this sprint is to enable persistence of waveforms. A Save button will be added to the timing UI. An http call will be made which writes the waveform data to a remote database. The information to be saved would be a name, the data, and a randomly generated GUID. The data would then be written to a server wrapping a database.

  1. Add UI and extend the object.
    1. Add a name button. Validate it being non-zero length on save.
    2. Add a save button.
    3. Generate a GUID for the new waveform object.
    4. Create an object with waveform, name, and GUID.
  2. Create a DB and table
    1. Create a MySQL db.
    2. Write a script for creating the table.
    3. Table should have GUID, name, and waveform JSON text.
  3. Write a PHP server call
    1. Write POST /N/svr/waveform
    2. Params are id (guid - string, 32 characters), name, waveform.
    3. Write SQL insert statement.
  4. Write AJAX call to send waveform to server

Definition of Done:

  1. All UI written.
  2. Waveform is saved to DB.
  3. Manually tested.
  4. Unit tests written.
  5. Functional tests written.
  6. Documentation written.
  7. Server and client code saved to Github.
  8. Github read-me updated

Start date: June 4, 2013

Completed: June 7, 2013