Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.1 KB

README.md

File metadata and controls

53 lines (36 loc) · 1.1 KB

DENO-API

TypeScript deno compatibility GitHub Repo Size License MIT

Simple JSON REST API built with Deno JavaScript Runtime (https://deno.com) and Hono Framework 4.0 (https://hono.dev).

Installation

Install Deno Runtime (https://docs.deno.com/runtime/manual/getting_started/installation)

curl -fsSL https://deno.land/install.sh | sh

# Update your .bashrc profile
export DENO_INSTALL="/home/your_username/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"

deno info
deno --version

Copy .env.example content to .env

Run dev server (watch file changes)

deno task dev

Run production server

deno task serve

Run tests

deno test

Run on Docker

docker build --no-cache -t deno-api .

docker run --rm -it -p 3000:3000 --name deno-api deno-api