https://github.com/avivharuzi/deno-rest-api-example
Deno REST API example project
https://github.com/avivharuzi/deno-rest-api-example
api deno
Last synced: 2 months ago
JSON representation
Deno REST API example project
- Host: GitHub
- URL: https://github.com/avivharuzi/deno-rest-api-example
- Owner: avivharuzi
- License: mit
- Created: 2020-05-27T16:34:29.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2021-10-13T18:58:22.000Z (over 4 years ago)
- Last Synced: 2025-01-15T15:02:42.390Z (over 1 year ago)
- Topics: api, deno
- Language: TypeScript
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deno REST API Example
Deno REST API example project.
## Prerequisites
* Install deno from https://deno.land
* Install denon (if you are planning to watch the files)
```bash
deno install --allow-read --allow-run --allow-write -f --unstable https://deno.land/x/denon/denon.ts
```
* MongoDB (optional if you are going to use Docker)
* Copy **.env.example** and make **.env** file
* Update the **.env** file values
* Docker and Docker Compose (optional)
## Commands
Format files.
```bash
deno fmt
```
Run server.
```bash
deno run -A --unstable src/main.ts
```
Run server with denon.
```bash
denon run -A --unstable src/main.ts
```
## Docker Commands
Development build.
```bash
docker-compose up -d
```
Production build.
```bash
docker-compose -f docker-compose.yml -f docker-compose.prod.yml up -d
```