npm run buildPosts
Pulls posts from sqlite and runs data through React which generates S3 files Requires webpack to be built for app.js
npm run updateBuildIndex
Pulls posts from sqlite and generates index pages Requires webpack to be built for app.js
npm run buildAdmin
Generates Admin client side app
npm run newPost
Inserts new post into DB
npm run updatePost
Updates post in DB
npm run tokenUpdate
Lambda that takes in a token and returns AWS credentials
npm run loginUpdate
Generates temp token and sends email with magic link
npm run returnPosts
Returns posts as JSON
npm run cache
Clears the cache on /page files
npm run deploy
Deploys admin
npm run deploySearch
Deploy search builder
npm run search
Deploy search react app Requirements:
- run webpack
- md5 and change filename
- update filename in template.js
- re-deploy buildPosts and updateBuildIndex with updated template.js
- clear cache for all pages
- deploy search javascript to s3
npm run search:build
Build search client side
npm run fix
eslint –fix lambdas
All sqlite interaction must use the Linux-built sqlite npm module in pkg.tar