Skip to content

thecodeholic/deno-mongodb-rest-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno MongoDB REST API

Installation

  1. Clone the repository
  2. open mongodb.ts file and change const MONGO_URL = 'mongodb://localhost:27017' to connect to your mongodb database
  3. Start the server by running deno run --allow-net --allow-write --allow-read --allow-plugin --unstable server.ts

Usage

You can access the following endpoints on http://localhost:8000

METHOD URL Description
GET /notes Return all notes
GET /notes/:id Return single note
POST /notes Create a note
PUT /notes/:id Update note
DELETE /notes/:id Delete note

About

REST API with Deno and oak reading and writing data from MongoDB

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published