Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gonzaloplaza/deno-api
Simple JSON REST API built with Deno JavaScript Runtime (https://deno.com) and Hono Framework 4.0 (https://hono.dev).
https://github.com/gonzaloplaza/deno-api
deno deno-boilerplate denojs denoland hono honojs rest-api
Last synced: 10 days ago
JSON representation
Simple JSON REST API built with Deno JavaScript Runtime (https://deno.com) and Hono Framework 4.0 (https://hono.dev).
- Host: GitHub
- URL: https://github.com/gonzaloplaza/deno-api
- Owner: gonzaloplaza
- License: mit
- Created: 2024-02-11T12:36:00.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-11T15:17:19.000Z (11 months ago)
- Last Synced: 2024-10-25T10:36:53.344Z (about 2 months ago)
- Topics: deno, deno-boilerplate, denojs, denoland, hono, honojs, rest-api
- Language: TypeScript
- Homepage:
- Size: 14.6 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DENO-API
[![TypeScript](https://badges.frapsoft.com/typescript/code/typescript.svg?v=101)](https://www.typescriptlang.org/)
[![deno compatibility](https://shield.deno.dev/deno/1.40.4)](https://deno.com)
![GitHub Repo Size](https://img.shields.io/github/repo-size/gonzaloplaza/express-ts-ddd)
[![License MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)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)```bash
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)
```bash
deno task dev
```### Run production server
```bash
deno task serve
```### Run tests
```bash
deno test
```### Run on Docker
```sh
docker build --no-cache -t deno-api .docker run --rm -it -p 3000:3000 --name deno-api deno-api
```