Skip to content

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

Notifications You must be signed in to change notification settings

Wellington01/deno-mongodb-rest-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deno MongoDB REST API

About the project

Application created in order to learn about creating an api rest with Deno.

Technologies

Technologies that I used to develop this 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 --allow-env 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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%