https://github.com/oguzsh/denosimpleapi
This project is a simple api project with Deno
https://github.com/oguzsh/denosimpleapi
api deno deno-examples
Last synced: about 1 month ago
JSON representation
This project is a simple api project with Deno
- Host: GitHub
- URL: https://github.com/oguzsh/denosimpleapi
- Owner: oguzsh
- Created: 2020-05-19T01:49:01.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-20T17:21:11.000Z (about 6 years ago)
- Last Synced: 2025-01-22T10:51:15.767Z (over 1 year ago)
- Topics: api, deno, deno-examples
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DENO | Simple Api Project
## Modules
The repository contains:
- a [Deno](https://deno.land/) (v**1.0**)
- a [oak](https://github.com/oakserver/oak) (v**4.0.0**)
- a [Deno Runner](https://github.com/MarcHanin/drun/tree/master) (v**1.0.0**)
## Directory layout
- [x] Controllers: It includes the methods of incoming requests.
- [x] Data: It contains the mock data we'll use.
- [x] Models: It's the part where the objects to be used in our app are created.
- [x] Routes: It ensures that requests are directed to the appropriate controllers.
- [x] 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/drun@v1.0.0/drun.ts`
2. `$ drun`
## Endpoints
| Endpoint | Status | Request |
| ------------------- | :----------------------------------------------------------------------------: | :-----: |
| /api/data |  | GET |
| /api/data/:username |  | GET |
| /api/data |  | POST |
| /api/data/:username |  | PUT |
| /api/data/:username |  | DELETE |
## TODO
- [x] Directory Layout
- [x] CRUD Operations
- [x] Routing Operations
- [ ] MongoDB Integration
## License
This project is released under the [MIT License](LICENSE).
```
```