Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for http oak middleware with crud and sqlite DB #1101

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

mailtoraj369
Copy link

HTTP oak http middleware application with crud routes using file based SQLite3 serverless database

* It demonstrates the CRUD(Create, Read, Update and Delete) operations on file-based SQLite Database using HTTP methods (Get, Post, Put, Delete, Options)
*/

import { Application, Router } from "https://deno.land/x/[email protected]/mod.ts";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can simply use jsr:@oak/oak here, unless you're are doing this specifically to use v11.1.0.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

have updated as requested, thanks for pointing out

@mailtoraj369
Copy link
Author

Code updated as per review comments.

@RadhiRasho
Copy link
Contributor

Example also has to follow the contribution rules of single file, no more than 50 lines.

@mailtoraj369
Copy link
Author

Example code lines refactored as per guidelines.. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants