- NVM - Node environment manager.
- Webpack - Build tool.
- Wrangler - CloudFlare Worker deployment tool.
- ESLint - Linter.
- Prettier - Code formatter.
- Jest - JavaScript Test Framework.
- Travis CI - Automated build pipeline.
Use this Github Repository Template or fork the repo to get started.
This project uses nvm
Install correct version of node:
nvm install
To activate the correct version:
nvm use
npm i
npm run server
npm run preview
First, edit the wrangler.toml file with your production configuration for Cloudflare.
Deploy your code with:
npm run publish
- Cloudflare KV Asset Handler - Great tool to use if serving up assets and/or single-page apps. Integrates nicely with Wrangler
- Wercker - Build automation / deployment.