Deploy the Web Application

Learn how to deploy your web application to Firebase hosting.

Deploying to Firebase hosting

In its essence, deploying to Firebase hosting is a single command:

firebase deploy

Connect to the terminal below and it will open the package.json (the one in the firebase directory), add the following script at the last in the scripts object, and add a comma after the previous item:

"deploy": "firebase deploy"

Nano editor instructions:

  • Ctrl+o and then press Enter to save.
  • Ctrl+x to exit.

We can test this by running the following command in the firebase directory.

npm install
npm run firebase:login // login first
npm run deploy

Get hands-on with 1400+ tech skills courses.