Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/cmwylie19/pepr-todo-list


https://github.com/cmwylie19/pepr-todo-list

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Todos

Cloud Native Todolist implementation using Pepr showcasing _Watch_ and _Store_.

## Usage

Quick Start:

```bash
k3d cluster delete; k3d cluster create; npx pepr dev --confirm
```

Get todo list:

```bash
alias todolist="k get secret todos -n todolist -ojsonpath='{.data.list}' | base64 -d | jq"
```

Create the namespace:

```bash
k create ns todolist
```

Create a Todo item:

Add milk to the todolist...

```bash
k create cm -n todolist milk \
--from-literal=status="incomplete" \
--from-literal=task="Buy milk"
```

Add coffee to the todolist...

```bash
k create cm -n todolist coffee \
--from-literal=status="incomplete" \
--from-literal=task="Buy coffee"
```

Add sugar to the todolist...

```bash
k create cm -n todolist sugar \
--from-literal=status="incomplete" \
--from-literal=task="Buy sugar"
```

Add gum to the todolist...

```bash
k create cm -n todolist gum \
--from-literal=status="incomplete" \
--from-literal=task="Buy gum"
```

Mark coffee as complete:

```yaml
k apply -f -<