Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# HarperDB React SSR Example
# Harper React SSR Example

This repo is an example of how to implement React SSR using HarperDB Resources to efficiently generate a _Blog_ from a database of _Posts_.

Expand All @@ -11,7 +11,7 @@ It includes complete client side hydration as well, resulting in a fully interac

1. `npm i`
2. `npm build`
3. `harperdb run .`
3. `harper run .`
4. Navigate to [/UncachedBlog/0](http://localhost:9926/UncachedBlog/0) or [/CachedBlog/0](http://localhost:9926/CachedBlog/0)
5. Add or remove comments!

Expand Down
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ graphqlSchema:
jsResource:
files: resources.js
static:
files: 'dist/'
files: 'dist/**/*'
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>HarperDB React SSR Example</title>
<title>Harper React SSR Example</title>
<link rel="stylesheet" href="/src/style.css" />
<!--app-data-->
<!--app-head-->
</head>
Expand Down
Loading