Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/timothyvanderaerden/stocked
A sample application to test out Phoenix Liveview.
https://github.com/timothyvanderaerden/stocked
Last synced: 14 days ago
JSON representation
A sample application to test out Phoenix Liveview.
- Host: GitHub
- URL: https://github.com/timothyvanderaerden/stocked
- Owner: timothyvanderaerden
- Created: 2020-12-20T13:20:36.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-09-30T11:53:41.000Z (about 3 years ago)
- Last Synced: 2023-03-05T09:07:47.830Z (over 1 year ago)
- Language: Elixir
- Homepage:
- Size: 256 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Stocked
A sample application to test out [Phoenix LiveView](https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.html).
To start the Phoenix server:
* Install dependencies with `mix deps.get`
* Move `.envrc.example` to `.envrc` and set the variables
* [Optional] Start Postgres with `docker/docker-compose.yml` (if you don't already have Postgres locally installed)
* Create and migrate your database with `mix ecto.setup`
* Start Phoenix endpoint with `mix phx.server`Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.
## Data Model
A very simple data model is used which looks like the following.
![Data Model](assets/static/images/data_model.png)