Getting started

First things first, let’s get the Serverless Framework open source CLI installed on your machine.

Install or update daSWAG CLI

# Install the daSWAG CLI using npm
npm install -g daSWAG

# Or an alternative
yarn global add daswag-cli

# You can also update the daSWAG cli from a previous version
npm update -g daswag

If you don’t already have Node 10 or higher on your machine, you’ll need to do that first. - Install Node.js from the Node.js website (please use an LTS 64-bit version, non-LTS versions are not supported)

Once you have the Serverless Framework installed, simply run the ‘serverless’ command and follow the prompts. In no time you will have deployed your first serverless app using the Serverless Framework CLI and configured your Serverless Framework Dashboard account to automatically monitor your serverless app, generate alerts, and much more.

Optional installations

  1. Install Git from git-scm.com. We recommend you also use a tool like SourceTree if you are starting with Git.
  2. Depending on your target configuration, you will need some peer dependencies to be able to build and deploy your project.

Troubleshooting

If you have problems using Yarn globally, be sure to have $HOME/.config/yarn/global/node_modules/.bin in your path.

On Mac or Linux: export PATH="$PATH:`yarn global bin`:$HOME/.config/yarn/global/node_modules/.bin"

Create a new project

Once you have the daSWAG CLI installed, simply run the daswag new command and follow the prompts. In no time you will have deployed your first serverless web app using the daSWAG CLI.

daswag new

Additional information

daSWAG uses Yeoman for code generation and Oclif to manage the CLI. To find more information, tips and help, please have a look at the Yeoman “getting starting” guide before submitting a bug.

The configuration will be stored in a generated .yo-rc.json file.