aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorpack <pack@packgekko.xyz>2026-08-12 17:06:50 +0000
committerpack <pack@packgekko.xyz>2026-08-12 17:06:50 +0000
commit5611527e313c4add16c432e5cf9d55a987558c02 (patch)
tree59ad054325096b6305277b94982bbe7f7f585f59 /README.md
parentd3adc16a08d95d6e331de55d7d3bf05a66a874a8 (diff)
downloadcrud-5611527e313c4add16c432e5cf9d55a987558c02.tar.gz
final commit
Diffstat (limited to 'README.md')
-rw-r--r--README.md61
1 files changed, 61 insertions, 0 deletions
diff --git a/README.md b/README.md
index e69de29..5ccb65f 100644
--- a/README.md
+++ b/README.md
@@ -0,0 +1,61 @@
+![screenshot](img_crud_logo.png)
+
+A minimal task management API with user authentication, built with express and better-sqlite3.
+
+![screenshot](img_screenshot.png)
+
+
+
+~download
+
+You can get a copy using git with the following command:
+
+```bash
+git clone https://git.200l.xyz/crud
+```
+
+
+
+~features
+
+- Create, read, update, and delete tasks.
+- User authentication with sessions.
+- Per-user task isolation.
+- Lightweight sqlite database, no external db server needed.
+
+
+
+~dependencies
+
+- node.js
+- express
+- better-sqlite3
+
+
+
+~development
+
+Install dependencies and start the server:
+
+```bash
+npm install
+node server.js
+```
+
+
+
+~usage
+
+Register a user, log in, and manage tasks via the rest api:
+
+| Method | Endpoint | Description | Body |
+|----------|----------------|----------------------|-----------------------------------|
+| `POST` | `/tasks` | Create a new task | `{ "title": "...", "description": "..." }` |
+| `GET` | `/tasks` | Get all tasks | — |
+| `GET` | `/tasks/:id` | Get a single task | — |
+| `PUT` | `/tasks/:id` | Update a task | `{ "title": "...", "description": "...", "done": 0 }` |
+| `DELETE` | `/tasks/:id` | Delete a task | — |
+
+~license
+
+Trinity