arc in package.json creates the AWS SAM sam.yaml file for you!Request and Response objectsawait style code with no callbacks for routes or middleware - Arc lambdas simply return HTTP responses, and middleware can be chained together by returning a response (ending processing) or a modified request (passing to the next step in middleware).env for secrets, which isn't committed for security reasons - keep it in your password manager.npx degit mikemaccana/serverless-starter-kit my-new-app
cd my-new-app
npm install
Install MongoDB, then cp .env.example .env to make an env file. Then start MongoDB.
Just run:
npm start
The Architect sandbox is now running on http://localhost:3333
npm test
Or to run a single test suite or test:
npm test-filter "Auth"
Set up your ~/.aws/credentials and run:
npm run deploy
See the docs for Architect Serverless and Svelte
src/frontendpublic/images and public/csssrc/http, src/ws, code shared between all routes is in src/shared and src/views. If you make changes to src/shared and npm run update-shared-and-views will update the necessary symlinks for you.arc key. Arc organises these by familiar concepts - so each http route, for example, results in an API gateway with a Lambda attached when you deploy to AWS.Please don't just spam me asking for features!
See CHANGELOG.md