This application adds a search widget to Canvas.
Follow these instructions to install into Canvas
Make sure to install git and npm before you start then:
- git clone https://github.com/atomicjolt/atomic-search-widget.git my_project_name
- Configure Caddy to serve the build dir by adding this to your Caddyfile, changing the file path
atomic-search-widget.atomicjolt.xyz {
root * /[path-to-repo]/build/dev
file_server
header {
Cache-Control: no-cache, no-store, must-revalidate
}
}
-
Install packages with
npm install
-
Start server with:
npm run hot
- Upload the file loaders/local.js as your canvas theme js (Do this in a subaccount or on test or beta canvas). It's a small snippet that simply loads the js from the webpack server.
Run webpack hot reload server:
npm hot
Release a production build to the S3 website bucket
env is dev, beta, or prod:
npm release [env]
Run a linter over the project:
npm lint
If you have multiple aws profiles and need to use a specific one you can do so by setting the AWS_PROFILE i.e. AWS_PROFILE=atomicjolt npm run release dev
MIT