The repository contains:
- a Deno (v1.0)
- a oak (v4.0.0)
- a Deno Runner (v1.0.0)
- 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.
-
$ deno install --allow-read --allow-run --unstable https://deno.land/x/drun@v1.0.0/drun.ts
-
$ drun
Endpoint | Status | Request |
---|---|---|
/api/data | GET | |
/api/data/:username | GET | |
/api/data | POST | |
/api/data/:username | PUT | |
/api/data/:username | DELETE |
- Directory Layout
- CRUD Operations
- Routing Operations
- MongoDB Integration
This project is released under the MIT License.