sst.dev icon indicating copy to clipboard operation
sst.dev copied to clipboard

Comments: Set up the Serverless Framework

Open jayair opened this issue 9 years ago • 11 comments

Link to chapter - http://serverless-stack.com/chapters/setup-the-serverless-framework.html

jayair avatar Apr 10 '17 00:04 jayair

node1 node2 node3 node4

I'm having another problem here as well creating an aws node.js service...any input would be greatly apppreciated!

zohaibshahzadTO avatar May 17 '17 01:05 zohaibshahzadTO

Why aws-sdk was installed as a devDependencies? Shouldn't it be installed in dependencies instead?

fcostarodrigo avatar Dec 02 '17 17:12 fcostarodrigo

@fcostarodrigo This portion of the setup is weird but better explained here - https://github.com/serverless-heaven/serverless-webpack#node-modules--externals

jayair avatar Dec 02 '17 19:12 jayair

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

fcostarodrigo avatar Dec 04 '17 11:12 fcostarodrigo

Yup

jayair avatar Dec 04 '17 17:12 jayair

in last ls response is 5 files not 4 -> handler.js node_modules package-lock.json package.json serverless.yml

topguncharl avatar Jan 31 '18 21:01 topguncharl

@topguncharl Thanks for the heads up. Tweaked the wording in the chapter.

jayair avatar Jan 31 '18 23:01 jayair

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

mgeiser avatar May 08 '18 15:05 mgeiser

ok, I guess it was notes-app-api...

mgeiser avatar May 08 '18 15:05 mgeiser

@mgeiser Yeah I think this has been a source of confusion. The project root changes when we switch to the frontend section as well.

jayair avatar May 09 '18 17:05 jayair

This issue was moved to https://discourse.serverless-stack.com/t/comments-set-up-the-serverless-framework/145

jayair avatar May 09 '18 20:05 jayair