Skip to content

oguzsh/denoSimpleApi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DENO | Simple Api Project

Modules

The repository contains:

Directory layout

  • Controllers: It includes the methods of incoming requests.
  • Data: It contains the mock data we'll use.
  • Models: It's the part where the objects to be used in our app are created.
  • Routes: It ensures that requests are directed to the appropriate controllers.
  • index.ts: It's the main file that we'll launch our app and it contains the necessary configurations.

Installation

  1. $ deno install --allow-read --allow-run --unstable https://deno.land/x/[email protected]/drun.ts

  2. $ drun

Endpoints

Endpoint Status Request
/api/data yes GET
/api/data/:username yes GET
/api/data yes POST
/api/data/:username yes PUT
/api/data/:username yes DELETE

TODO

  • Directory Layout
  • CRUD Operations
  • Routing Operations
  • MongoDB Integration

License

This project is released under the MIT License.


About

This project is a simple api project with Deno

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published