Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Integrate client and server via Flux #38

Merged
merged 7 commits into from
Aug 19, 2014
Merged

Conversation

rtfeldman
Copy link
Collaborator

Putting this up for discussion.

At present, this sets up a basic Flux architecture in the vein of https://github.com/facebook/flux/tree/master/examples/flux-todomvc and has the survey editor use it for saving.

The parts where it makes some XHRs to communicate with the server (for #36 and #37) are still stubbed out, but I thought I'd put this up so we can work from it.

Thoughts?

@jonathan-beebe
Copy link
Contributor

@rtfeldman This looks good.

If I'm understanding it right, for recording the results of a survey we'll need:

  • SurveyConstants RECORD_SURVEY
  • SurveyActions.record(results) method
  • SurveyStore getSurvey(survey_id) method
  • SurveyStore recordSurvey(results) method
  • wire up the record action in the Dispatcher

@rtfeldman
Copy link
Collaborator Author

Yep! That all sounds right. 👍

@jonathan-beebe
Copy link
Contributor

@rtfeldman — I just added the survey recording to PR #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants