Skip to content

In this tutorial, we'll cover how to build a Deno API that supports CRUD operations and stores data in a MongoDB database. The example API will run on an Oak middleware framework that will include routes to create, retrieve, update, and delete documents in the database.

Notifications You must be signed in to change notification settings

wpcodevo/deno-mongodb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build a Complete Deno CRUD RESTful API with MongoDB

In this tutorial, we'll cover how to build a Deno API that supports CRUD operations and stores data in a MongoDB database. The example API will run on an Oak middleware framework that will include routes to create, retrieve, update, and delete documents in the database.

Build a Complete Deno CRUD RESTful API with MongoDB

Topics Covered

  • Run the Deno + MongoDB CRUD API Locally
  • Setup the Deno CRUD API
  • Create the MongoDB Model
  • Create the Validation Schemas with Zod
  • Create the Oak Middleware Route Handlers
    • Add document handler
    • Update document handler
    • Get a single document handler
    • Get all documents handler
    • Delete a document handler
  • Create the Oak Middleware Routes
  • Register the API Routes

Read the entire article here: https://codevoweb.com/deno-crud-restful-api-with-mongodb

Articles in this Series:

1. How to Setup and Use MongoDB with Deno

How to Setup and Use MongoDB with Deno

2. How to Set up Deno RESTful CRUD Project with MongoDB

How to Set up Deno RESTful CRUD Project with MongoDB

3. Authentication with Bcrypt, JWT, and Cookies in Deno

Authentication with Bcrypt, JWT, and Cookies in Deno

4. Build a Complete Deno CRUD RESTful API with MongoDB

Build a Complete Deno CRUD RESTful API with MongoDB

About

In this tutorial, we'll cover how to build a Deno API that supports CRUD operations and stores data in a MongoDB database. The example API will run on an Oak middleware framework that will include routes to create, retrieve, update, and delete documents in the database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published