[![Netlify Status](https://api.netlify.com/api/v1/badges/4762edf6-7be1-4185-942f-cdfc33b74fda/deploy-status)](https://app.netlify.com/sites/tally-web/deploys)

# Tally

Collect ideas, keep a tally of how many times they come up, then use them to
make decisions.

## Development

This project uses [Proto](https://moonrepo.dev/docs/proto/install) to manage
the node and pnpm versions. Once installed, you can set up your local
environment:

```sh
proto use
pnpm install
pnpx nx dev @tally/web
```

### Add a new app / package

```sh
nx
```

## Architecture

Raycast app frontend

* search as you type for similar existing items
* create a new item
* add +1 to an existing item
* show top-tally items
* add item comment

Next.js Management Webapp

* App Router Web App
  * CRUD on tokens
  * CRUD on items
  * View item history
  * View token history
* API
  * search
  * add item
  * increment tally
  * fetch items, sorted by tally (asc, desc)

Neon database. Deployed serverless.