Comments: Set up the Serverless Framework
Link to chapter - http://serverless-stack.com/chapters/setup-the-serverless-framework.html
I'm having another problem here as well creating an aws node.js service...any input would be greatly apppreciated!
Why aws-sdk was installed as a devDependencies? Shouldn't it be installed in dependencies instead?
@fcostarodrigo This portion of the setup is weird but better explained here - https://github.com/serverless-heaven/serverless-webpack#node-modules--externals
I see. AWS already includes aws-sdk, so you don't need to include it again.
http://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html
Yup
in last ls response is 5 files not 4 -> handler.js node_modules package-lock.json package.json serverless.yml
@topguncharl Thanks for the heads up. Tweaked the wording in the chapter.
Under the "Install Node.js packages" section, you say "At the root of the project, run."
It would be helpful to disambiguate by confirming the root of the project; I assume this is not the notes-app-api directory but the parent directory
ok, I guess it was notes-app-api...
@mgeiser Yeah I think this has been a source of confusion. The project root changes when we switch to the frontend section as well.
This issue was moved to https://discourse.serverless-stack.com/t/comments-set-up-the-serverless-framework/145