https://github.com/mikekasprzak/sample-deno-app
A reference web application written to teach Deno
https://github.com/mikekasprzak/sample-deno-app
deno denoland eta oak typescript
Last synced: 3 months ago
JSON representation
A reference web application written to teach Deno
- Host: GitHub
- URL: https://github.com/mikekasprzak/sample-deno-app
- Owner: mikekasprzak
- Created: 2025-01-29T20:10:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-04T00:39:11.000Z (over 1 year ago)
- Last Synced: 2025-06-16T04:36:28.470Z (about 1 year ago)
- Topics: deno, denoland, eta, oak, typescript
- Language: CSS
- Homepage:
- Size: 91.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

A reference web application written to teach [Deno](https://deno.land).
The purpose was to showcase what an HTML web server application *SHOULD* look like without much fat.
It uses:
* Oak - For routing HTTP requests.
* Eta - For rendering HTML templates.
## Where do I start?
While this isn't being written or maintained as a tutorial, you may find these files helpful.
* [main.ts](/main.ts) - The source code... yes, that's essentially it (though some snippets can be found in the templates).
* [template/patient.eta](/template/patient.eta) - The most-complete page template. Written to be easy to read and follow, though it does include a examples of how you might align things or make them optional.
* [static/style.css](/static/style.css) - CSS styles, paired with the templates. Includes a brief CSS crash-course at the top.
* [deno.json](/deno.json) - The Deno configuration file. I wanted to show how little you actually need, so this file is bare.
## How do I run this?
Install deno, checkout the code, open a terminal and browse to the directory, and run the following:
```bash
deno task run
```
The first time Deno should download a few packages, then start the server. Open in your web browser to view the application. Push `CTRL+C` in the terminal to stop the server.