Skip to content

Commit 07e2e03

Browse files
committed
docs: Update deploy.md, docs/template-notes/README.md, comparison.md, features.md, packages.md and resources.md
1 parent 1ca1bde commit 07e2e03

File tree

6 files changed

+52
-17
lines changed

6 files changed

+52
-17
lines changed

docs/deploy.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ See the [main.yml](/.github/workflows/main.yml) workflow file and the repo's _Ac
2121

2222
## Hosting
2323

24-
The output directory from the [Build](#build) section can be served as static content using Nginx or a static hosting service like Netlify or GitHub Pages. You do not need Deno running host this site.
25-
24+
The output directory from the [Build](#build) section can be served as static content using Nginx or a static hosting service like Netlify or [GitHub Pages][]. You do not need Deno running host this site.
2625

2726
To set up GitHub Pages:
2827

docs/template-notes/README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,17 @@
22

33
<!-- You can delete this directory on your copy of this template. -->
44

5+
The aim of this project is to demonstrate how to use Deno to develop a React app, in place of using Node.js.
6+
7+
8+
## Menu
9+
10+
The notes here describe how this project was created, how to maintain it and some links to other projects.
11+
512
- [Features](features.md)
6-
- [Purpose](purpose.md)
713
- [Comparison with other projects](comparison.md)
814
- [Limitations](limitations.md)
915
- [TypeScript with JSX](ts-jsx.md)
10-
11-
Learn more:
12-
16+
- [Packages](packages.md)
1317
- [Resources](resources.md)
14-
- [Related projects](related-projects.md)
18+
- [Rendering](rendering.md)

docs/template-notes/comparison.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,19 @@ Here is what I found searching for "React Deno". They all use Deno on the server
1616
- two directories for backend in Node or React and `react` directory for frontend (note `package.json`).
1717
- [Build an Isomorphic Application using Deno and React without WebPack](https://decipher.dev/deno-by-example/advanced-react-ssr/) guide.
1818

19-
Server-side rendering means running a Deno server in production and structuring as an API or an MVC. Maybe with a database.
19+
Server-Side Rendering means running a Deno server in production for _dynamic content_. It means structuring as an API or an MVC app. Maybe with a database.
2020

21-
This is not relevant for me, looking for make a Single-Page Application that can be served as static files with Nginx or GH Pages.
21+
This is not relevant for me, looking for make a Single-Page Application that can be served as _static_ files with Nginx or a service GH Pages.
2222

23-
Some of these handle Node and NPM to build the React frontend. Which I think misses the point of Deno as a Node replacement.
23+
Some of the Deno projects above handle Node and NPM to build the React frontend... which I think misses the point of Deno as a Node replacement.
2424

2525

2626
## Frontend
2727

2828
Some others use Deno to handle a React dev server like I want. But they don't support a step to build a static app. I can't recall one of those.
2929

30-
I did also find this which bundles a client-side React app. But, it is designed to be used with the SSR Deno, which I don't want. Also there is code there I don't need. I want to stick to the basics. Also that uses `Deno.bundle` in TS code instead of in the terminal which seems weird.
30+
I did also find this which bundles a client-side React app. But, it is designed to be used with the SSR Deno, which I don't want. Also there is code there I don't need. I want to stick to the basics.
31+
32+
Also that uses `Deno.bundle` in TS code, while I prefer to use the light Deno CLI commands.
3133

3234
- [How To Bundle Code For Deno Web Applications](https://dev.to/craigmorten/deno-bundle-for-server-side-rendered-react-11c2) post

docs/template-notes/features.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
11
# Features
22
> A list of features of this project
33
4-
54
- Outline of a basic React built with React.
65
- Two modes for running your React app.
7-
- Start a dev server.
6+
- Start a dev server which rebuilds on JS changes.
87
- Create a production build - then serve it a locally or on your production server.
98
- Task running through Deno and `make`.
109
- See [Makefile](/Makefile) or run `make help` for commands.
1110
- This flow replaces using `package.json` and `npm/yarn run`.
12-
- Light on configuration files and dependencies. No need to install ESLint, a test runner or TypeScript. These are all built into Deno. Deno also handles `.jsx` files out the box.
11+
- Light on configuration files and dependencies. **No** need to install ESLint, a test runner or TypeScript. These are all built into Deno. Deno also handles `.jsx` files out the box.
1312
- Documentation is included - see [docs/](/docs/).
1413
- GitHub Actions CI is included.
15-
- See the workflow in [.github/](/.github/).
14+
- See the workflow in [.github/workflows](/.github/workflows/).
1615
- This builds the app and deploys static assets for serving your React Single-Page Application.

docs/template-notes/packages.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
# Packages
22

3+
4+
## Overview
5+
6+
The core of this application is built on using React and React-DOM libraries, which are imported from the JSPM CDN - see [dev.ts](/deps.ts).
7+
8+
The Deno package _Abc_ is used as a dev dependency to serve assets.
9+
310
## Dev packages used
411

5-
This is aboutbdev dependencies in set in the [dev_deps.ts](/dev_deps.ts) module.
12+
This is about dev dependencies in set in the [dev_deps.ts](/dev_deps.ts) module.
613

714
### Abc
815

@@ -16,6 +23,8 @@ The `jsx` section was used as a starting point for the dev server of this projec
1623

1724
The `static` directory was used for this project's static server. In Node, there are a ton of options for packages for static servers, some that live reload and don't need a script (so they can be run as CLI tools). You could also use Nginx or Python or VS Code's Live Server extension. Anything to preview the build output locally before deploying it.
1825

26+
This package must be kept separately in the [dev_deps.ts](/dev_deps.ts). It is not needed at all on the frontend. Also, if it _is_ included (and not even used) in [deps](/deps.ts), then unfortunately it gets added to the bundle output including references to `Deno` which break on the frontend as `undefined`.
27+
1928

2029
## Maintaining versions
2130

docs/template-notes/resources.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
11
# Resources
22

3+
## Tools used
4+
35
- [Deno](https://michaelcurrin.github.io/dev-resources/resources/javascript/deno/) resources.
4-
- [React](https://github.com/MichaelCurrin/learn-to-code/blob/master/en/topics/scripting_languages/JavaScript/libraries/react.md) resources.
6+
- [React](https://michaelcurrin.github.io/dev-resources/resources/javascript/packages/react/) resources.
7+
8+
## Related projects
9+
10+
### React
11+
12+
- [![MichaelCurrin - react-quickstart](https://img.shields.io/static/v1?label=MichaelCurrin&message=react-quickstart&color=blue&logo=github)](https://github.com/MichaelCurrin/react-quickstart)
13+
- React and Node. Conventional flow using a project generated with `npx create-react-app`, plus CI to deploy.
14+
- [![MichaelCurrin - react-frontend-quickstart](https://img.shields.io/static/v1?label=MichaelCurrin&message=react-frontend-quickstart&color=blue&logo=github)](https://github.com/MichaelCurrin/react-frontend-quickstart)
15+
- React but without Deno, Node or a build step.
16+
- This used ES Modules to load packages by URL - so it is similar to this React Deno project.
17+
18+
### Deno
19+
20+
- [![MichaelCurrin - deno-project-template](https://img.shields.io/static/v1?label=MichaelCurrin&message=deno-project-template&color=blue&logo=github)](https://github.com/MichaelCurrin/deno-project-template)
21+
- A generic Deno project.
22+
23+
### Node
24+
25+
- [![MichaelCurrin - node-project-template](https://img.shields.io/static/v1?label=MichaelCurrin&message=node-project-template&color=blue&logo=github)](https://github.com/MichaelCurrin/node-project-template)
26+
- A generic Node project.

0 commit comments

Comments
 (0)