All Projects β†’ denoland β†’ denobyexample

denoland / denobyexample

Licence: MIT license
Deno by example - short examples showcasing how to use Deno

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to denobyexample

awesome-kotlin-libraries-for-android
😎 A curated list of awesome Kotlin libraries for Android.
Stars: ✭ 53 (-26.39%)
Mutual labels:  examples
optionals
Rust-like error handling and options for TypeScript and Deno!
Stars: ✭ 97 (+34.72%)
Mutual labels:  deno
exodus.ts
The first MongoDB compatible data migration tool built on for the Deno runtime environment, allowing users to perform complete schema and database migrations.
Stars: ✭ 42 (-41.67%)
Mutual labels:  deno
erc20-balance
πŸ’Ž Get 2000+ ERC-20 token balances with JavaScript. Supports Node.js and Deno
Stars: ✭ 18 (-75%)
Mutual labels:  deno
event
πŸ“† Strictly typed event emitter with asynciterator support
Stars: ✭ 30 (-58.33%)
Mutual labels:  deno
ros2 examples
Examples for individual ROS2 functionalities inc. Subscribers, Publishers, Timers, Services, Parameters. ...
Stars: ✭ 46 (-36.11%)
Mutual labels:  examples
progress
ProgressBar in terminal for deno
Stars: ✭ 39 (-45.83%)
Mutual labels:  deno
nav-docker-examples
Examples and use-cases for MS Dynamics NAV on Docker
Stars: ✭ 21 (-70.83%)
Mutual labels:  examples
api-deno-compiler
This is an api that execute your deno code and send you the output
Stars: ✭ 13 (-81.94%)
Mutual labels:  deno
evolution
Evolution process of The Falco Project
Stars: ✭ 37 (-48.61%)
Mutual labels:  examples
deno bindgen
Simplified glue code generation for Deno FFI libraries written in Rust.
Stars: ✭ 142 (+97.22%)
Mutual labels:  deno
swagger2ts
πŸ’— 从 Swagger η”ŸζˆδΌ˜ι›…ηš„ Typescript 代码. Generate elegant typescript code from swagger.
Stars: ✭ 17 (-76.39%)
Mutual labels:  deno
rhum
A test double library
Stars: ✭ 92 (+27.78%)
Mutual labels:  deno
easy-to-understand-Vue.js-examples
γ€Šζ·±ε…₯ζ΅…ε‡ΊVue.jsγ€‹ηš„η›Έε…³δ»£η 
Stars: ✭ 49 (-31.94%)
Mutual labels:  examples
neeo-sdk-examples
NEEO Brain SDK Examples
Stars: ✭ 19 (-73.61%)
Mutual labels:  examples
denoffi
Deno Foreign Function Interface.
Stars: ✭ 37 (-48.61%)
Mutual labels:  deno
three-stdlib
πŸ“š Stand-alone library of threejs examples designed to run without transpilation in node & browser
Stars: ✭ 380 (+427.78%)
Mutual labels:  examples
svelte-adapter-deno
A SvelteKit adapter for Deno
Stars: ✭ 152 (+111.11%)
Mutual labels:  deno
coreutils
πŸ¦• Cross-platform Deno rewrite of the GNU Coreutils
Stars: ✭ 22 (-69.44%)
Mutual labels:  deno
go-learning
My Golang training material for testing smaller Go concepts and ideas.
Stars: ✭ 27 (-62.5%)
Mutual labels:  examples

Deno by Example

This repository contains the source code for https://examples.deno.land/.

Deno by Example is a collection of small snippets showcasing various functions of the APIs implemented in Deno.

  • Examples are written in TypeScript
  • Each example should be a single file, no more than 50 lines
  • Each example should be a self-contained unit, and should depend on no dependencies other than Deno builtins and the standard library (exceptions can be made)
  • Each example should be runnable without additional dependencies on all systems (exceptions can be made for platform specific functionality)
  • Examples should be introduce at most one (or in exceptional cases two or three) concepts in Deno / Web APIs. Existing concepts should be linked to.
  • Code should be kept really simple, and should be easy to read and understand by anyone. Do not use complicated code constructs, or hard to follow builtins like Array.reduce
  • Concepts introduced in an example should be explained

Contributing

Adding an example

To add an example, create a file in the data directory. The file name should be the id of the example, and the contents should be the code for the example. The file should be in the .ts format. The file should start with a JSDoc style multi line comment that describes the example:

/**
 * @title HTTP server: Hello World
 * @difficulty intermediate
 * @tags cli, deploy
 * @run --allow-net <url>
 *
 * An example of a HTTP server that serves a "Hello World" message.
 */

You should add a title, a difficulty level (beginner or intermediate), and a list of tags (cli, deploy, web depending on where an example is runnable). The @run tag should be included if the example can be run locally by just doing deno run <url>. If running requires permissions, add these:

/**
 * ...
 * @run --allow-net --allow-read <url>
 */

After the pragmas, you can add a description of the example. This is optional, but recommended for most examples. It should not be longer than one or two lines. The description shows up at the top of the example in the example page, and in search results.

After the JS Doc comment, you can write the code. Code can be prefixed with a comment that describes the code. The comment will be rendered next to the code in the example page.

Now add your example to the toc.js file. This will cause it to show up on the index page.

After you have added the example, run make fmt and make lint to format and lint the example.

Running the webserver locally

To run the webserver locally, open a terminal and run:

make dev

You can then view the page at http://localhost:8000/

Before opening a PR with a change, make sure make fmt and make lint pass.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].