Skip to content
Example repo for companion article https://arc.codes/guides/offline
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
public modernize for v4 Oct 19, 2018
src modernize for v4 Oct 19, 2018
tests update for new sandbox Nov 13, 2018
.arc modernize for v4 Oct 19, 2018
.gitignore hbd Oct 17, 2018
package-lock.json update for new sandbox Nov 13, 2018
package.json update for new sandbox Nov 13, 2018
readme.md Fix bad link (no protocol) Oct 17, 2018

readme.md

arc-example-working-locally

extends the tutorial from https://arc.codes/guides/offline with a JSON API that does classic CRUD

setup

npm i
npx hydrate
npx create

test

npm t

things to notice:

  • tests are all in memory so they run very fast
  • check out @http in .arc
  • the api implementation in ./src/http uses @architect/data to read/write dynamodb tables defined by .arc
  • the tests in tests/http-test.js

teardown generated aws infra (but retain local code)

npx inventory nuke && ARC_NUKE=tables npx inventory nuke
You can’t perform that action at this time.