Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.05 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.05 KB

Demo

This demo shows you how to use DnDB in a backend environment.

Steps

  • Run the demo with the permission flags.
deno run -A --unstable https://x.nest.land/dndb/0.2.7/demo/mod.js

You can start playing with the new demo UI. Fist try to insert a document typing an username and clicking 'Make Query'.

It is also a REST API, so you can:

  • Make a POST request at /:your_username to add a username in your database.
  • Make a GET request at /all to get all the users collection.
  • Make a GET request at /all/:your_username to get the matching users collection.
  • Make a GET request at /:your_username to get the matching user document.
  • Make a PUT request at /all/:your_username/:new_username to update all the matching users.
  • Make a PUT request at /:your_username/:new_username to update the mathcing user document.
  • Make a DELETE request at /all to remove all the users collection.
  • Make a DELETE request at /all/:your_username to remove all the matching user documents.
  • Make a DELETE request at /:your_username to remove the matching user document.