https://github.com/scriptex/deno-rest-api
An example REST API implementation for Deno using Oak framework
https://github.com/scriptex/deno-rest-api
deno oak rest-api
Last synced: 9 months ago
JSON representation
An example REST API implementation for Deno using Oak framework
- Host: GitHub
- URL: https://github.com/scriptex/deno-rest-api
- Owner: scriptex
- License: mit
- Created: 2021-01-28T13:54:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-11-27T09:25:36.000Z (about 1 year ago)
- Last Synced: 2025-03-26T18:21:18.977Z (10 months ago)
- Topics: deno, oak, rest-api
- Language: TypeScript
- Homepage: https://atanas.info/portfolio/open-source/deno-rest-api
- Size: 20.5 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
[](https://www.codacy.com/gh/scriptex/deno-rest-api/dashboard?utm_source=github.com&utm_medium=referral&utm_content=scriptex/deno-rest-api&utm_campaign=Badge_Grade)
[](https://codebeat.co/projects/github-com-scriptex-deno-rest-api-master)
[](https://www.codefactor.io/repository/github/scriptex/deno-rest-api)
[](https://deepscan.io/dashboard#view=project&tid=3574&pid=5257&bid=40799)
[](https://github.com/scriptex/deno-rest-api/)
# Deno REST API
A simple REST API starter kit implementation in [Deno](https://deno.land/)
environment using [OAK](https://oakserver.github.io/oak/) as middleware
framework.
The app contains basics CRUD operations managing a Book entity using at the
moment a simple Interface for modeling the REST Entity with read and write
operation in an array collection.
## Visitor stats




## Code stats





TODO: Add database and authentication support.
## Prerequisites
1. [Install Deno](https://deno.land/#installation)
### Shell (Mac, Linux):
```sh
curl -fsSL https://deno.land/x/install/install.sh | sh
```
### PowerShell (Windows):
```sh
iwr https://deno.land/x/install/install.ps1 -useb | iex
```
### Homebrew (Mac):
```sh
brew install deno
```
### Chocolatey (Windows):
```sh
choco install deno
```
### Scoop (Windows):
```sh
scoop install deno
```
### Build and install from source using Cargo
```sh
cargo install deno
```
2. Configure your IDE. I am using VSCode so I installed the
[official Deno extension](https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno)
from the Visual Studio Marketplace. Then I followed the setup instructions:
## Usage
Lint using Deno's built in linter
```sh
./scripts/lint.sh
```
Format using Deno's built in formatter
```sh
./scripts/format.sh
```
Start your server on port 5000
```sh
./scripts/run.sh
```
Compile into a single executable
```sh
./scripts/compile.sh
```
## LICENSE
MIT
---
Connect with me:
---