When deploying to AWS Lambda with Architect, you'll need:
arc
) CLIArchitect recommends installing these globally:
$ npm i -g @architect/architect aws-sdk
You will be running two processes during development when using Architect as your server.
# in one tab
$ arc sandbox
# in another
$ npm run dev
Open up http://localhost:3333 and you should be ready to go!
If you'd rather run everything in a single tab, you can look at concurrently or similar tools to run both processes in one tab.
Before you can deploy, you'll need to do some setup with AWS:
If you make it through all of that, you're ready to deploy!
build the app for production:
$ npm run build
Deploy with arc
$ arc deploy production
You're in business!