Skip to content

Commit

Permalink
Update and unify dev scripts (#119)
Browse files Browse the repository at this point in the history
This pull request replaces the previous `live.exs` and `dev.exs` scripts
with a new `dev.exs` script based on the Phoenix Playground project
that includes both the Controller and LiveView examples.

There are multiple benefits of this refactor:
- We can work using a single script instead of two
- Phoenix Plaground provides autoreload functionality by default
- Phoenix Playground simplifies process management and can start a
supervision tree
- Dependencies are automatically fetched and compiled separately from
those in the `mix.exs` file.

To start the dev server you just run:

```
iex dev.exs
```
  • Loading branch information
crbelaus authored Dec 17, 2024
1 parent 23f00f4 commit ef7351c
Show file tree
Hide file tree
Showing 3 changed files with 227 additions and 304 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,8 @@ mix assets.watch

### Development server

We have a `dev.exs` script that starts a development server.

To run it together with an `IEx` console you can do:
We have a `dev.exs` script based on [Phoenix Playground](https://github.com/phoenix-playground/phoenix_playground) that starts a development server.

```
iex -S mix dev
iex dev.exs
```
Loading

0 comments on commit ef7351c

Please sign in to comment.