Skip to main content

How do I set up staging, test accounts and synthetic student data for a study platform?

Give the platform a separate staging environment with its own database and credentials, fill it from a seed script that generates fake districts, teachers and students, and create one test login per role. Built properly, this takes 20 to 40 hours of engineering, about $1,700 to $3,400, and no real student record has to leave production.

What each environment is for

Most study platforms need three environments. One rule holds them together: real student data exists only in production, and nothing flows from production back down.

Environment Who uses it Data in it What it proves
Development Engineers Small seed set, reset often The code runs
Staging Engineers, PI, research staff, district reviewers Full synthetic dataset at pilot scale A release works before teachers see it
Production Teachers, students, research team Real records under the data use agreement The study itself

Staging should mirror production: same hosting, same authentication, same software versions, same configuration except credentials. On Firebase that means a separate Firebase project, not a separate collection in the same project. On AWS it means a separate account, or at minimum separate databases, storage buckets and keys.

If staging shares a database or a storage bucket with production, it is not staging.

How to set up test accounts

Create one named test account per role, plus a few for edge cases. A typical study platform needs these:

  • Admin or research staff: sees all classes, exports data, manages study conditions.
  • Teacher, one per study condition: so you can confirm a treatment-group teacher never sees control-group materials.
  • Students, several per class: including one with accommodation settings, one who joins mid-study and one whose consent is withdrawn.
  • District reviewer: a read-only account an IT reviewer can explore without touching any real class.

Use an email domain you control, such as teacher.treatment1@test.yourlab.org, so nothing sent from staging can reach a real teacher or parent. Turn off outbound email and SMS in staging, or route all of it to one inbox. Keep account names and passwords in a shared password manager, not a spreadsheet.

If production uses single sign-on through a district directory or a rostering service, ask the provider for a sandbox or test tenant for staging. Test logins should never touch a district’s real directory.

What synthetic student data should look like

Synthetic data is generated by a script, not edited from real records. It has to be realistic enough to break the platform the way real use would, and obviously fake to anyone who sees it.

  • Names come from a fixed fake list or a library such as Faker; student IDs carry a prefix like TEST- that no real ID could have.
  • Grade levels, class sizes and condition assignments match the pilot design.
  • Edge cases are deliberate: long names, accented characters, empty responses, a student in two classes, a class of one.
  • Response and log data cover the full study length, so export and analysis scripts can run end to end.
  • The script is deterministic: the same seed produces the same dataset, so a bug found Tuesday can be reproduced Thursday.

Worked example: sizing a seed set for a two-district pilot

Suppose the pilot is 20 teachers in two districts, about 25 students each, over eight weeks with two sessions a week. Seed staging at 1.5 times pilot scale so load problems appear before the study does.

Item Pilot Staging seed
Districts 2 2
Schools 6 6
Teachers 20 30
Students 500 750
Sessions per student 16 16
Logged events per session About 200 About 200
Total logged events About 1.6 million About 2.4 million

At that size the teacher dashboard, the nightly export and the per-student save path are all tested under realistic load. A dataset of 10 students hides the slow query that makes 20 teachers wait on the first morning of the pilot.

Keeping real records out of staging

This setup usually fails quietly, when someone copies production into staging to debug a problem. Prevent it with structure, not reminders.

  • Separate credentials: staging keys cannot read production, and the production database rejects connections from staging.
  • No production snapshots restored to staging. If a bug needs real-shaped data, write a synthetic case that reproduces it.
  • Staging logs are tagged and excluded from the research dataset, so test sessions never enter the efficacy analysis.
  • A visible banner on every staging page, so no teacher mistakes it for the live platform.

Write these rules on one page and put it in the technical disclosure package. District IT reviewers and IRBs often ask how the team tests changes without student data, and a written answer with an environment diagram is faster than a meeting.

What FERPA and your data use agreement require is your institution’s decision. Counsel or the compliance office signs off; this design gives them something concrete to review.

How long it takes and what it costs

  1. Separate staging project, databases, storage and keys: 4–8 hours.
  2. Seed script for fake districts, classes, students and study conditions: 8–16 hours.
  3. Test accounts per role, an SSO sandbox, outbound messages disabled: 4–8 hours.
  4. A deployment pipeline that ships to staging first and to production only after checks pass: 4–8 hours.

That totals about 20–40 hours, or $1,700–$3,400 at our hourly rate of $85. The top of the range is when the platform uses single sign-on, sends messages, or has study conditions that change what each role sees. If the prototype has settings hard-coded, add time to move them into environment configuration first.

This is the discipline that keeps a pilot from breaking mid-study. When we stabilized an NSF-funded React/Firebase research platform used across several universities, we made saving and loading student work 100% reliable and gave the distributed research groups one deployment pipeline.

Frequently asked questions

Can I just anonymize a copy of production data for testing?
Usually it is a poor trade. De-identifying student records takes more than removing names, because small classes, timestamps and free-text answers can still point to a student, and the copy may fall outside what your data use agreement allows. Synthetic data avoids the question. Whether a de-identified copy is permitted is for your institution’s counsel or compliance office to decide.

Can teachers use staging for training before the pilot starts?
Yes, and it is one of the best uses of staging. Give each teacher a training account in a synthetic class so they can practice before real students log in. Reset the training classes from the seed script before each session so everyone starts from the same state.

Does a district IT review look at the staging environment?
Often indirectly. Reviewers ask where student data is stored, who can access it and how the vendor tests changes. A written description showing that staging holds only synthetic data under separate credentials answers the last question cleanly, and a read-only reviewer account on staging covers requests for a demo.

Who actually does the work if we hire Smplfy?
Charlie scopes every project and makes the architecture calls, and Smplfy’s own engineers build it. The first project has a fixed scope, and you read a written scope before committing. A retainer across the pilot period starts only if you choose one.

Should our graduate student set this up instead?
If the student knows the hosting platform well and will stay through the pilot, that can work. The risk is the student graduating mid-study with the seed script and credentials known only to them. Whoever builds it, keep the script, the account list and the environment notes in the lab’s repository.

Planning a pilot on a study platform?

We offer a free 30-minute review of your pilot plan or the technical section of your proposal. Bring the prototype’s repository or a demo, the pilot timeline, and the funder’s or district’s requirements. Start a conversation.