Skip to content

Commit

Permalink
Update installation guide
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrocp committed May 23, 2024
1 parent cf63263 commit 1af7a3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guides/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ We recommend following the guide thoroughly, but if you want a short version or

5. Add `:beacon_live_admin` into `:import_deps` in file `.formatter.exs`

6. Run `mix setup`

7. Add `beacon_live_admin` to your application `router.ex` file:
6. Add `beacon_live_admin` to your application `router.ex` file:

```elixir
use Beacon.LiveAdmin.Router # <- add this line
Expand All @@ -55,6 +53,8 @@ We recommend following the guide thoroughly, but if you want a short version or
end
```

7. Run `mix deps.get`

Note that route precedence is important, make sure the there are no conflicts with other routes otherwise Beacon LiveAdmin will not work properly.

For example, if a site is mounted at `/` then you should add the admin scope before so `/admin` is handled by Beacon LiveAdmin,
Expand Down Expand Up @@ -125,7 +125,7 @@ Or add to `admin_web` if running in an Umbrella app.
]
```

3. Run `mix setup`
3. Run `mix deps.get`

### Mount admin in the router

Expand Down

0 comments on commit 1af7a3d

Please sign in to comment.