h0mayun
h0mayun

Reputation: 3611

Create demo of admin control panel

I created an web app that has a admin control panel, it's almost done but suddenly i found that i should launch the control panel as demo, where public can login with public user id and password and do changes but restore the default data from database for another user. how can i do this? which way is faster?

Upvotes: 2

Views: 1466

Answers (1)

Kasyx
Kasyx

Reputation: 3200

  1. Make database for this demo user. Think which functionality should be blocked (for example password, change etc).
  2. Make database dump with demo data.
  3. Every hour (or on every login) run script which will be truncate all tables (if you have constraints, remember about correct truncate queue) and then run your dump file.

Upvotes: 2

Related Questions