Create a new Blitz.js Project

Khaled Garbaya
InstructorKhaled Garbaya

Share this video with your friends

Send Tweet
Published 2 years ago
Updated 4 months ago

For Blitz.js to wrok properly you need to have Node.js 12 or newer.

You can create a new Blitz.js project using the Framework's cli tool.

Install Blitz

Run npm install -g blitz

Create a New App

  1. blitz new myApp
  2. cd myApp
  3. blitz start
  4. Navigate to your app at http://localhost:3000

Khaled Garbaya: [0:00] Let's install Blitz as a global dependency. Let's create a new Blitz app using the command blitz new and then the app name. To run the Blitz app, let's cd to the directory and run blitz start. Let's go to our browser, and you can see here that we have a Blitz app running.