Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zigcc/zig-todo-web-app

A Single-page TODO app in Zig!
https://github.com/zigcc/zig-todo-web-app

zig zig-library zig-package zig-programming-language ziglang

Last synced: about 1 month ago
JSON representation

A Single-page TODO app in Zig!

Awesome Lists containing this project

README

        

* TodoAPP
A Single-page TODO app in Zig!

* How to use
** Jetzig-app
- Download jetzig at https://www.jetzig.dev/downloads.html
- Run =jetzig server= in =jetzig-app= directory
- Open [[http://localhost:8080/][http://localhost:8080/]] in browser to explore!

* Backend endpoints
| Route | Function | Content-Type |
|------------------------+-----------------+--------------|
| =GET /= | index page | html |
| =POST /api/todos= | create new todo | json |
| =GET /api/todos/:id= | get todo | json |
| =PUT /api/todos/:id= | update todo | json |
| =DELETE /api/todos/id= | delete todo | json |