https://github.com/uttesh/deno
deno sample applications.
https://github.com/uttesh/deno
crud-sample deno deno-module denoland rest typescript
Last synced: 2 months ago
JSON representation
deno sample applications.
- Host: GitHub
- URL: https://github.com/uttesh/deno
- Owner: uttesh
- Created: 2020-05-16T10:00:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-05-18T14:21:57.000Z (about 6 years ago)
- Last Synced: 2025-01-17T12:17:39.898Z (over 1 year ago)
- Topics: crud-sample, deno, deno-module, denoland, rest, typescript
- Language: TypeScript
- Homepage: https://www.youtube.com/watch?v=1CLlZMWpx0Q&t=13s
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Deno samples
Samples on the Deno.
Deno is a JavaScript/TypeScript runtime with secure defaults and great developer experience.
It's built on V8, Rust, and Tokio.
Visit official website for more Deno features
## What makes Deno different from NodeJS?
Deno and node both are developed by Ryan Dahl, there are quite big differences.
1. Deno does not use the npm packages, yes you read it correctly!. It uses the URL/file modules
2. No package.json
3. All the actions are Async and it returns promise by default.
4. It's secure by default and prompts the permission for the net/file or environment access.
5. It completely uses the ES6 module and no required().
6. It supports both JavaScript and TypeScript.
## Install and run HelloWorld
### Windows
run the below commands from the powershell to install deno
*Using Chocolatey (Windows):*
```
choco install deno
```
Run Helloworld.ts
```
> deno run --allow-net helloworld.ts
```
Passing the *--allow-net* flag is required because deno is secure by default.
## Availbale Default Modules/Libraries by default
library list
## Typescript
Custom TypeScript Compiler Options (Experimental)
```
deno run -c tsconfig.json helloworld.ts
```
## CRUD-REST sample
Samples on the CRUD operation https://github.com/uttesh/deno/tree/master/crud-rest