Join egghead, unlock knowledge.

Want more egghead?

This lesson is for members. Join us? Get access to all 3,000+ tutorials + a community with expert developers around the world.

Unlock This Lesson
1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

    Setup the Serverless Framework

    Nik GrafNik Graf
    awsAWS
    javascriptJavaScript
    nodeNode.js

    To get started we install the Serverless Framework and show you some useful hints on how to get started with your first project.

    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss

    Transcript

    Transcript

    Instructor: We install the Serverless Framework by running npm install -g serverless. Once it's installed, we can run Serverless in our terminal. Running the command will show us all the available commands like deploy or invoke. Since typing out Serverless all the time might get tedious, instead we can use the shortened sls.

    In order to get started, Serverless ships a create command providing multiple templates. You can see them after running sls create -h for help. In our case, we're not going to use the create command, but instead create all the necessary configuration in code by hand and explain it on the way.