https://github.com/dssagar93/denorestcrud
🦕Deno CRUD REST API Using OAK
https://github.com/dssagar93/denorestcrud
api crud deno javascript typescript
Last synced: about 2 months ago
JSON representation
🦕Deno CRUD REST API Using OAK
- Host: GitHub
- URL: https://github.com/dssagar93/denorestcrud
- Owner: dssagar93
- Created: 2020-05-25T12:26:40.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-25T12:48:00.000Z (about 6 years ago)
- Last Synced: 2025-08-17T13:32:53.948Z (10 months ago)
- Topics: api, crud, deno, javascript, typescript
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deno CRUD API
## Fetching and manipulating array of objects for in-memory CRUD ops 🦕
## List of features
1. Crud operation on in-memory array of objects
2. Oak framework
I have impelemented the aforementioned features with the help of youtube crash course by [ Traversy Media(Bob Traversy)](https://www.youtube.com/watch?v=NHHhiqwcfRM)
## Routes
`GET` api/v1/products/ - Get All Products
`GET` api/v1/products/:id - Get Single Product By Id
`POST` api/v1/products/ - Add New Product
`PUT` api/v1/products/:id - Update Product By Id
`DELETE` api/v1/products/:id - Delete Product By Id
# Run a development server
Run `deno run --allow-net server.ts`. The '--allow-net' parameter is mandatory since Deno is a secure javascript runtime
framework, we need to explicitly ask for the network permissions.