- Run a rake task to create a root user:
./bin/rake db:seed:user - Log in as
root@localhostwith passwordrootpassword - For extra security and customization change the password or perform the following actions:
- Go to Users > Add and create an admin user for yourself. Be sure to UNCHECK the “Invite User” checkbox. You likely do not have email sending set up on your dev box.
- Now edit that user and set a password. Save your change.
- Log out, then log in as yourself.
- Go to Users > List and delete the original
root@localhost.
Just log in as yourself — assuming you are an admin in the production database. If not, you may have to do something like the following (replacing your email address) to give yourself admin rights.
./bin/rails c
u = Admin.find_by(email: 'username@example.com')
u.roles << Role.find_by(name: 'admin')
u.save
Ctrl-D
Create some cities, some local GC users, and some events. Note the different views and editing abilities of events based on whether you are logged in as an admin or a local GC member.
For more on the security model and data model, please read data_model.md.