Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/basilenouvellet/surf_marketplace

The demo of my talk "Real-time Product Analytics with LiveView" at ElixirConfEU 2023 in Lisbon 🇵🇹
https://github.com/basilenouvellet/surf_marketplace

Last synced: 3 months ago
JSON representation

The demo of my talk "Real-time Product Analytics with LiveView" at ElixirConfEU 2023 in Lisbon 🇵🇹

Awesome Lists containing this project

README

        

# Surf Marketplace


surf marketplace screenshot admin analytics
surf marketplace screenshot home page

## Presentation

This is a fake marketplace for buying & selling used surfboards. It is basic and kind of empty.

The interesting part is the `/admin/analytics` page, with an admin dashboard listing all the connected users (liveview processes):

- process PID
- RAM usage of the process (updated in real-time)
- liveview assigns (updated in real-time)
- ability to kill a process
- ability to send a message to the user through flash messages & message passing

## Talk

This is the demo of my talk **Real-time Product Analytics with LiveView** at **ElixirConfEU 2023** in Lisbon 🇵🇹

[![talk](https://img.youtube.com/vi/N9KZmMiGc5g/0.jpg)](https://www.youtube.com/watch?v=T_ET9_BGs1M)

Slides are [available here](https://slides.com/basilenouvellet/palette/fullscreen)

## Disclaimer

This is an experimental project to explore the idea that, with LiveView, a user is a process.

It is **not** production ready, performance optimizations have not been considered yet (e.g. currently we poll the processes twice a second).

## Contributing

Feel free to open a PR if you think about something to improve.

## Setup

- install dependencies with `mix setup`
- start app with `iex -S mix phx.server`
- visit [`localhost:4000`](http://localhost:4000)