- commit
- a157fad96130d2315c0ab90bf3719c790bdba835
- author
- FelineStateMachine <FelineStateMachine@users.noreply.github.com>
| A | Readme.md | 9 | +++ |
| A | deno.json | 8 | +++ |
| A | deno.lock | 70 | ++++++++++++++++++++++++++ |
| A | index.html | 80 | ++++++++++++++++++++++++++++++ |
| A | main.ts | 5 | ++ |
@@ -0,0 +1,9 @@
1+# Deno Examples: Hello, World!2+3+Simply serving a single file over HTTP4+5+## Get your own copy to explore6+7+You can clone this example into a repo of your own, and use it to set up a new application hosted on Deno Deploy in a few clicks8+9+[](https://app.deno.com/new?clone=https://github.com/denoland/examples&path=hello-world)\ No newline at end of file@@ -0,0 +1,70 @@
1+{2+ "version": "5",3+ "specifiers": {4+ "jsr:@std/cli@^1.0.20": "1.0.20",5+ "jsr:@std/encoding@^1.0.10": "1.0.10",6+ "jsr:@std/fmt@^1.0.8": "1.0.8",7+ "jsr:@std/fs@^1.0.19": "1.0.19",8+ "jsr:@std/html@^1.0.4": "1.0.4",9+ "jsr:@std/http@*": "1.0.19",10+ "jsr:@std/internal@^1.0.9": "1.0.9",11+ "jsr:@std/media-types@^1.1.0": "1.1.0",12+ "jsr:@std/net@^1.0.4": "1.0.4",13+ "jsr:@std/path@^1.1.1": "1.1.1",14+ "jsr:@std/streams@^1.0.10": "1.0.10"15+ },16+ "jsr": {17+ "@std/cli@1.0.20": {18+ "integrity": "a8c384a2c98cec6ec6a2055c273a916e2772485eb784af0db004c5ab8ba52333"19+ },20+ "@std/encoding@1.0.10": {21+ "integrity": "8783c6384a2d13abd5e9e87a7ae0520a30e9f56aeeaa3bdf910a3eaaf5c811a1"22+ },23+ "@std/fmt@1.0.8": {24+ "integrity": "71e1fc498787e4434d213647a6e43e794af4fd393ef8f52062246e06f7e372b7"25+ },26+ "@std/fs@1.0.19": {27+ "integrity": "051968c2b1eae4d2ea9f79a08a3845740ef6af10356aff43d3e2ef11ed09fb06"28+ },29+ "@std/html@1.0.4": {30+ "integrity": "eff3497c08164e6ada49b7f81a28b5108087033823153d065e3f89467dd3d50e"31+ },32+ "@std/http@1.0.19": {33+ "integrity": "52128c8d00a1f0b20019f8b72376e7ef5f3133375b6f805b5bc89b9de2ad4686",34+ "dependencies": [35+ "jsr:@std/cli",36+ "jsr:@std/encoding",37+ "jsr:@std/fmt",38+ "jsr:@std/fs",39+ "jsr:@std/html",40+ "jsr:@std/media-types",41+ "jsr:@std/net",42+ "jsr:@std/path",43+ "jsr:@std/streams"44+ ]45+ },46+ "@std/internal@1.0.9": {47+ "integrity": "bdfb97f83e4db7a13e8faab26fb1958d1b80cc64366501af78a0aee151696eb8"48+ },49+ "@std/media-types@1.1.0": {50+ "integrity": "c9d093f0c05c3512932b330e3cc1fe1d627b301db33a4c2c2185c02471d6eaa4"51+ },52+ "@std/net@1.0.4": {53+ "integrity": "2f403b455ebbccf83d8a027d29c5a9e3a2452fea39bb2da7f2c04af09c8bc852"54+ },55+ "@std/path@1.1.1": {56+ "integrity": "fe00026bd3a7e6a27f73709b83c607798be40e20c81dde655ce34052fd82ec76",57+ "dependencies": [58+ "jsr:@std/internal"59+ ]60+ },61+ "@std/streams@1.0.10": {62+ "integrity": "75c0b1431873cd0d8b3d679015220204d36d3c7420d93b60acfc379eb0dc30af"63+ }64+ },65+ "workspace": {66+ "dependencies": [67+ "jsr:@std/assert@1"68+ ]69+ }70+}@@ -0,0 +1,80 @@
1+2+<html lang="en">3+4+<head>5+ <meta charset="UTF-8">6+ <meta name="viewport" content="width=device-width, initial-scale=1.0">7+ <title>Hello, Deno</title>8+ <link rel="preload" href="https://demo-styles.deno.deno.net/fonts/Moranga-Regular.woff2" as="font" type="font/woff2" crossorigin />9+ <link rel="preload" href="https://demo-styles.deno.deno.net/fonts/Moranga-Medium.woff2" as="font" type="font/woff2" crossorigin />10+ <link rel="preload" href="https://demo-styles.deno.deno.net/fonts/Recursive_Variable.woff2" as="font" type="font/woff2" crossorigin />11+ <link rel="stylesheet" href="https://demo-styles.deno.deno.net/styles.css">12+ <style>13+ img {14+ display: inline-block;15+ vertical-align: middle;16+ }17+ </style>18+</head>19+20+<body>21+ <main>22+ <section>23+ <a href="https://deno.com/deploy">24+ </a>25+ <h1>26+ <p>27+ Hello, Deno!28+ </p>29+ </h1>30+ <p>31+ This little example is being served by <a href="https://deno.com/">Deno</a>.32+ You can run it locally or in porduction on <a href="https://deno.com/deploy">Deno Deploy</a> or other hosting platforms.33+ </p>34+ <ul>35+ <li>Run it locally with<code>deno task dev</code></li>36+ <li>Deploy it to <a href="https://deno.com/deploy">Deno Deploy</a> via the CLI by running<code>deno deploy</code></li>37+ <li>Run it locally and share it publically by running <code>deno deploy --connected</code></li>38+ </ul>39+ </section>40+ <hr>41+ <section>42+ <h2>What's next?</h2>43+ <p>44+ You can clone this example and deploy it to Deno Deploy in just a few clicks45+ <a href="https://app.deno.com/new?clone=https://github.com/denoland/examples&path=hello-world"><img src="https://deno.com/button" alt="Deploy on Deno"/></a>46+ </p>47+ <ul>48+ <li>49+ <a href="https://docs.deno.com/examples">More examples in the Deno Docs</a>50+ </li>51+ <li>52+ <a href="https://deno.com/deploy">Deno Deploy Early Access</a>53+ </li>54+ </ul>55+ </section>56+ </main>57+ <hr>58+ <footer>59+ <section>60+ <ul class="flex-btwn">61+ <li>62+ <a href="https://deno.com">BlueSky</a>63+ </li>64+ <li>65+ <a href="https://deno.com">Twitter</a>66+ </li>67+ <li>68+ <a href="https://deno.com">YouTube</a>69+ </li>70+ <li>71+ <a href="https://deno.com">Newsletter</a>72+ </li>73+ <li>74+ <a href="https://deno.com">Deno</a>75+ </li>76+ </ul>77+ </section>78+ </footer>79+</body>80+</html>\ No newline at end of file