├── .markdownlint.json ├── projects ├── 1-welcome.ts ├── 2-cat.ts └── 3-server.ts ├── .github └── denobeginner.com.jpg ├── .vscode └── settings.json ├── .gitignore └── readme.md /.markdownlint.json: -------------------------------------------------------------------------------- 1 | { 2 | "MD041": false 3 | } 4 | -------------------------------------------------------------------------------- /projects/1-welcome.ts: -------------------------------------------------------------------------------- 1 | // Project #1: Hello Deno. 2 | console.log("Hello Deno 🦕"); 3 | -------------------------------------------------------------------------------- /.github/denobeginner.com.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ahmadawais/deno-beginner/HEAD/.github/denobeginner.com.jpg -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "deno.enable": true, 3 | "[typescript]": { 4 | "editor.defaultFormatter": "axetroy.vscode-deno" 5 | }, 6 | "[typescriptreact]": { 7 | "editor.defaultFormatter": "axetroy.vscode-deno" 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /projects/2-cat.ts: -------------------------------------------------------------------------------- 1 | // Project #2: Deno Unix `cat` command. 2 | for (let i = 0; i < Deno.args.length; i++) { 3 | let filename = Deno.args[i]; 4 | let file = await Deno.open(filename); 5 | await Deno.copy(file, Deno.stdout); 6 | file.close(); 7 | } 8 | -------------------------------------------------------------------------------- /projects/3-server.ts: -------------------------------------------------------------------------------- 1 | // Project #3: Deno Server. 2 | import { serve } from "https://deno.land/std/http/server.ts"; 3 | 4 | const server = serve({ port: 8000 }); 5 | 6 | console.log("Running at: http://localhost:8000/"); 7 | 8 | for await (const req of server) { 9 | const body = "Hello Deno; you're crazy!"; 10 | req.respond({ body }); 11 | } 12 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # NPM # 2 | ########## 3 | # Ignore all directories called node_modules in current folder and any subfolders. 4 | node_modules/ 5 | /node_modules/ 6 | 7 | # Packages # 8 | ############ 9 | *.7z 10 | *.dmg 11 | *.gz 12 | *.bz2 13 | *.iso 14 | *.jar 15 | *.rar 16 | *.tar 17 | *.zip 18 | *.tgz 19 | *.map 20 | 21 | # Logs and databases # 22 | ###################### 23 | *.log 24 | *.sql 25 | *.env 26 | 27 | # OS generated files # 28 | ###################### 29 | **.DS_Store* 30 | ehthumbs.db 31 | Icon? 32 | Thumbs.db 33 | ._* 34 | **settings.dat* 35 | 36 | # Vim generated files # 37 | ###################### 38 | *.un~ 39 | 40 | # SASS # 41 | ########## 42 | **/.sass-cache 43 | **/.sass-cache/* 44 | **/.map 45 | 46 | # Composer # 47 | ########## 48 | !assets/js/vendor/ 49 | wpcs/ 50 | /vendor/ 51 | 52 | # Bower # 53 | ########## 54 | assets/bower_components/* 55 | 56 | # Codekit # 57 | ########## 58 | /codekit-config.json 59 | *.codekit 60 | **.codekit-cache/* 61 | 62 | # Compiled Files and Build Dirs # 63 | ########## 64 | /README.html 65 | 66 | # PhpStrom Project Files # 67 | .idea/ 68 | library/vendors/composer 69 | assets/img/.DS_Store 70 | 71 | # VSCode related files # 72 | # .vscode 73 | -------------------------------------------------------------------------------- /readme.md: -------------------------------------------------------------------------------- 1 | [![Deno](./.github/denobeginner.com.jpg)][d] 2 | 3 | # Learn Deno 4 | 5 | > Learn Deno with my free video course at [Deno Beginner][d]. 6 | 7 | A secure runtime for JavaScript and TypeScript. 8 | 9 | > Deno is a simple, modern and secure runtime for JavaScript and TypeScript that uses V8 and is built in Rust. 10 | 11 | - Secure by default. No file, network, or environment access, unless explicitly enabled. 12 | - Supports TypeScript out of the box. 13 | - Ships only a single executable file. 14 | - Has built-in utilities like a dependency inspector (deno info) and a code formatter (deno fmt). 15 | - Has a set of reviewed (audited) standard modules that are guaranteed to work with Deno: deno.land/std 16 | 17 | ## Deno For Beginners Course 18 | 19 | [Learn deno][d] by example. In this free crash course, [Awais](https://twitter.com/MrAhmadAwais/) will teach you what is Deno, how is Deno different than Node.js, and together you'll build three simple projects with deno. Not sure why I wrote that in 3rd person. 😆 20 | 21 | [![Deno](https://dev-to-uploads.s3.amazonaws.com/i/jjj14b8d73adryxhzdfc.png)][d] 22 | 23 | _Caution: Shameless plug ahead! Support my work._ ↓ 24 | 25 | > - [🚀   VSCode.pro Power User Coursre][v] → 26 | > - [📟   Build Node.js CLIs Automation][n] → 27 | 28 | ## Course Contents 29 | 30 | - ✅   ACCESS: All Modules 31 | - ✅   VIDEOS: Every Course Video 32 | - ✅   EXAMPLES: Over 3 Example Projects 33 | - 📺   MODULE #1: Introduction to Deno 34 | - 📺   MODULE #2: Deno vs Node 35 | - 📺   MODULE #3: Deno: A fun tip 36 | - 📺   MODULE #4: Deno Core 37 | - 📺   MODULE #5: Installing Deno 38 | - 📺   MODULE #6: Deno CLI Review 39 | - 📺   MODULE #7: Deno with VSCode 40 | - 📺   MODULE #8: Deno CLI Help: Run 41 | - 📺   MODULE #9: Project #1: Hello Deno 42 | - 📺   MODULE #10: Project #2: Deno `cat` 43 | - 📺   MODULE #11: Project #3: Deno Server 44 | - 📺   MODULE #12: Deno.Land: Tools & Docs 45 | - 📺   MODULE #13: Deploy a Deno Website 46 | - 📺   MODULE #14: What's Next with Deno 47 | 48 | 49 | ### [Free: Sign up & Watch Now](https://DenoBeginner.com/?utm_source=dev.to&utm_medium=referral&utm_campaign=Launch%20Post) → 50 | 51 | [![DenoBeginner](https://dev-to-uploads.s3.amazonaws.com/i/fu5h69i71xprywtz5jw1.jpg)][d] 52 | 53 | [![Deno](https://dev-to-uploads.s3.amazonaws.com/i/jjj14b8d73adryxhzdfc.png)][d] 54 | 55 |
56 | 57 | [![👌](https://raw.githubusercontent.com/ahmadawais/stuff/master/images/git/connect.png)](./../../) 58 | 59 | ## Sponsor 60 | 61 | Me ([Ahmad Awais](https://twitter.com/mrahmadawais/)) and my incredible wife ([Maedah Batool](https://twitter.com/MaedahBatool/)) are two engineers who fell in love with open source and then with each other. You can read more [about me here](https://ahmadawais.com/about). If you or your company use any of my projects or like what I’m doing then consider backing me. I'm in this for the long run. An open-source developer advocate. 62 | 63 | [![Ahmad on Twitter](https://img.shields.io/twitter/follow/mrahmadawais.svg?style=social&label=Follow%20@MrAhmadAwais)](https://twitter.com/mrahmadawais/) 64 | 65 | [![Ahmad on Twitter](https://raw.githubusercontent.com/ahmadawais/stuff/master/sponsor/sponsor.jpg)](https://github.com/AhmadAwais/sponsor) 66 | 67 | [v]: https://VSCode.pro/?utm_source=dev.to&utm_medium=referral&utm_campaign=Launch%20Post 68 | [n]: https://NodeCLI.com/?utm_source=dev.to&utm_medium=referral&utm_campaign=Launch%20Post 69 | [d]: https://denobeginner.com/?utm_source=github.com&utm_medium=referral&utm_campaign=Learn%20Deno 70 | --------------------------------------------------------------------------------