To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
To send emails:
> mix cookes.email --test # sends the latest past sale to the test list
> mix cookes.email # sends upcoming sales to the test list
> mix cookes.email --prod # sends upcoming sales to the prod list
> mix cookes.email --note "Adds this note to the top of the email"
To process images:
> mix cookes.images --src ~/path/to/images # defaults to putting processed files in :src/upload
> mix cookes.images --src ~/path/to/images --dest ~/path/to/destination
To insert a sale into the FTS index:
> mix cookes.fts --sale 123 # the sale ID
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix