Getting Started

Requirements

Node.js

You need to have Node.js installed and it needs to be at least version 12.18.0.

We recommend using nvm for managing your Node.js installation version(s).

info
Quick guide on installing/using nvm

Install nvm via your OS package manager (aptitude, pacman, homebrew, ...) or alternatively via nvm install script.

Then, install a version of node that you need (any >= 12.18.0), e.g.:

$ nvm install 12

Finally, whenever you need to ensure specific version of node is used, run e.g.

$ nvm use 12

to set the node version for current shell session.

You can run

$ nvm current

to check the version of node currently being used in this shell session.

Check NVM repo for more details: https://github.com/nvm-sh/nvm .

Installation

Run following command to download and install wasp binary:

curl -sSL http://get.wasp-lang.dev | sh

Creating and running your first app

Execute the following commands in your terminal:

$ wasp new MyNewApp # Creates a new web app named MyNewApp.
$ cd MyNewApp
$ wasp start # Serves the web app.

That's it! You have successfully created and served a new web app at http://localhost:3000 and Wasp is serving both frontend and backend for you.

IDE support

Visual Studio Code

Visual Studio Code logo  If you are using Visual Studio Code, install our Wasp language extension!

What next?

Check out our Todo App tutorial.