kv-asset-handler
Routes requests to KV assets
File Explorer
Download Latest Version (.zip)- lint.yml
- test.yml
- CODEOWNERS
- dependabot.yml
- getAssetFromKV-optional.ts
- getAssetFromKV.ts
- mapRequestToAsset.ts
- serveSinglePageApp.ts
- index.ts
- mocks.ts
- types.ts
- .editorconfig
- .gitattributes
- .gitignore
- .markdownlint.yml
- .prettierignore
- .prettierrc
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- LICENSE_APACHE
- LICENSE_MIT
- package-lock.json
- package.json
- README.md
- RELEASE_CHECKLIST.md
- tsconfig.json
# Installation Guide
1. Get the code
git clone https://github.com/cloudflare/kv-asset-handler
Downloads the entire project code from GitHub to your computer.
cd kv-asset-handler
Moves into the project folder you just downloaded.
2. Node.js
Easy RecommendedPrerequisites
npm install
Downloads and installs the libraries listed in package.json.
npm start
Starts the development/run server.
After running the command, open the address shown in the terminal (usually something like http://localhost:3000) in your browser.
// repository documentation
Was this content helpful?
(0 ratings)
