Skip to content

cedarforestgiant/swimmeret

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swimmeret - Stability Help (PoC)

Run

node server.js

Open:

Webforms REST API (SQLite)

No auth required. Backed by data/forms.db using Node's experimental node:sqlite.

Create a form:

curl -X POST http://localhost:3000/api/forms \\
  -H \"Content-Type: application/json\" \\
  -d '{\"name\":\"Onboarding\",\"description\":\"Basic intake\",\"fields\":[{\"label\":\"Email\",\"type\":\"email\"}]}'\n```

List forms:

```bash
curl http://localhost:3000/api/forms

Get a form:

curl http://localhost:3000/api/forms/1

Update a form:

curl -X PUT http://localhost:3000/api/forms/1 \\
  -H \"Content-Type: application/json\" \\
  -d '{\"name\":\"Onboarding v2\",\"fields\":[{\"label\":\"Name\",\"type\":\"text\"}]}'\n```

Delete a form:

```bash
curl -X DELETE http://localhost:3000/api/forms/1

Notes

  • Swimmeret flow data is stored in data/db.json and seeded on first run.
  • Webforms are stored in data/forms.db.
  • No external dependencies.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors