diff options
-rw-r--r-- | README.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..afaf37b --- /dev/null +++ b/README.md @@ -0,0 +1,19 @@ +# deno-hono-jwt-auth + +## Usage +1. Generate `secret.key`. +``` +deno run -A generate_key.ts +``` + +2. Start server +``` +deno run -A app.ts +``` + +3. Test login +``` +curl -X POST http://localhost:8787/login \ +-H "Content-Type: application/json" \ +-d '{"username":"usesr","password":"password"}' +``` |