docbrown/docs/backend/admin.md
rhymes 9210f6793b Improvements on dev docs (#2616)
* Correct installation documentation

* Add stylized titles

* Add some changes to the getting started documentation

* Add changes for the backend guide

* Add changes for the design guide

* Add testing / Q&A guide improvements

* Minor fixes to contributing docs

* More improvements to the general doc

* Improvements for frontend guide
2019-04-29 18:54:29 -04:00

28 lines
653 B
Markdown

---
title: Admin Panel
---
# Accessing the admin panel
There is an admin panel located at <http://localhost:3000/admin>.
To access the panel, you must be logged with a user with the `admin` role activated.
To activate such a role, you can follow these instructions:
- open the Rails console
```shell
rails console
```
1. load the user object of for _bob_ (or whatever the username is)
```ruby
Loading development environment (Rails 5.2.3)
[1] pry(main)> user = User.find_by(username: "bob")
[2] pry(main)> user.add_role(:admin)
[3] pry(main)> user.save!
```
Now you'll be able to access the [administration panel](http://localhost:3000/admin).