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
23 changes: 23 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"name": "caching-guide-example",
"version": "1.0.0",
"description": "This repository is intended for use alongside the Harper Learn [\"Developers / Caching with Harper\"](https//docs.harperdb.io/learn/developers/caching-with-harper) guide.",
"homepage": "https://github.com/HarperFast/caching-guide-example#readme",
"bugs": {
"url": "https://github.com/HarperFast/caching-guide-example/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/HarperFast/caching-guide-example.git"
},
"license": "Apache-2.0",
"author": "HarperDB Inc.",
"type": "module",
"main": "resources.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {
"harper": "^5.0.11"
}
}
2 changes: 2 additions & 0 deletions resources.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { Resource, tables } from 'harper';

class JokeAPI extends Resource {
async get() {
const id = this.getId();
Expand Down