Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/soulsam480/okane

splitwise attempt in gleam
https://github.com/soulsam480/okane

Last synced: 2 days ago
JSON representation

splitwise attempt in gleam

Awesome Lists containing this project

README

        

# okane

> money

## Goals
- simple to develop and maintain
- try as many new tech as possible with speed and simplicity in mind

## How it works ?
### server side
- app is written in gleam (:heart:)
- wisp is the http routing layer
- it follows a loose rails structure
- so requests flow in the following order
- hooks <- can early terminate requests
- router <- resource specific modules which export a controller method
- serializer <- serialize DB records to json
- response
- for DB, sqlight is used, queries via cake
- DB records are represented as gleam records, with builder pattern for ops like insert, select etc.
- radiate for hot reloading during development

### client side
- app is served from priv/ui on /
- only session is hydrated on page load
- components and re-render via preact + htm + signals
- styles are tailwind + daisy UI