https://github.com/woojiahao/practical_elixir_demo
Demo web application written for "Practical Functional Programming" a talk given for NUS Hackers Hackerschool about practical applications of functional programming
https://github.com/woojiahao/practical_elixir_demo
elixir elixir-lang phoenix phoenix-liveview talk tutorial
Last synced: 4 months ago
JSON representation
Demo web application written for "Practical Functional Programming" a talk given for NUS Hackers Hackerschool about practical applications of functional programming
- Host: GitHub
- URL: https://github.com/woojiahao/practical_elixir_demo
- Owner: woojiahao
- Created: 2024-02-10T01:59:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-13T08:46:52.000Z (almost 2 years ago)
- Last Synced: 2024-12-31T05:33:16.863Z (about 1 year ago)
- Topics: elixir, elixir-lang, phoenix, phoenix-liveview, talk, tutorial
- Language: Elixir
- Homepage: https://practical-elixir.woojiahao.com
- Size: 308 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Practical Elixir Demo
## What is this?
This is the demo repository for the talk: "Practical Functional Programming" that I gave during
NUS Hackers' Hackerschool. The accompanying guide is found at:
[[https://practical-elixir.woojiahao.com]]
## Navigating this repository
There are four key branches for this repository:
1. `main` (this branch): contains the code for base Phoenix
2. `liveview-base`: contains the code for migrating from base Phoenix to Phoenix LiveView without
any further additions
3. `liveview`: contains the completed code for Phoenix LiveView (including creating to-dos and
marking to-dos as done/not done)
4. `complete`: contains the fully completed code with Phoenix LiveView and data persistence with
SQLite3
Pull from each branch to get the latest code using:
```
git fetch
git switch main/liveview-base/liveview/complete
```
## Getting started
To start your Phoenix server:
* Run `mix setup` to install and setup dependencies
* Start Phoenix endpoint with `mix phx.server` or inside IEx with `iex -S mix phx.server`
Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
Ready to run in production? Please [check our deployment guides](https://hexdocs.pm/phoenix/deployment.html).
## Learn more
* 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