12 Days of Baddass Courses sale! Get instant access to the entire egghead library of courses and lessons for 58% off.

Runs out in:
15 : 06 : 06 : 46
Join egghead, unlock knowledge.

Want more egghead? It's 58% off for a limited time only!

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

Unlock All Content for 40% Off
Become a member
to unlock all features

    Setup the Serverless Framework

    Nik GrafNik Graf

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



    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




    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.