# Deploy to Firebase Hosting

**URL:** <https://forum.radzen.com/t/deploy-to-firebase-hosting/1217>\
**Category:** Angular\
**Created:** [June 3, 2019, 10:05am UTC](https://forum.radzen.com/t/deploy-to-firebase-hosting/1217 "2019-06-03T10:05:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narrowbody](https://forum.radzen.com/user_avatar/forum.radzen.com/narrowbody/32/1217_2.png) [@Narrowbody](https://forum.radzen.com/u/Narrowbody)\
**Post date:** [June 3, 2019, 10:05am UTC](https://forum.radzen.com/t/deploy-to-firebase-hosting/1217/1 "2019-06-03T10:05:46Z")

</div>

Is there a process to deploy to Firebase hosting with Radzen? I have tried but failed to succeed with the "firebase-init" command in the "Client" directory. Is there any other way to do this?

Thank you for your help.  
Levent

---

<div class="post-metadata">

**Author:** ![korchev](https://forum.radzen.com/user_avatar/forum.radzen.com/korchev/32/4_2.png) [@korchev](https://forum.radzen.com/u/korchev)\
**Post date:** [June 4, 2019, 3:43am UTC](https://forum.radzen.com/t/deploy-to-firebase-hosting/1217/2 "2019-06-04T03:43:56Z")

</div>

Hi @Narrowbody,

I followed these steps to deploy [this](https://radzenfirebase.firebaseapp.com/) Radzen application (without a server-side project) to Firebase.

1. Opened a terminal and went to the `client` directory.
2. Ran `npm install` to install all dependencies.
3. Ran `firebase init` and picked `Hosting` and specified `dist` as the public directory. Basically followed [this Firebase and Angular](https://scotch.io/tutorials/deploying-an-angular-cli-app-to-production-with-firebase) tutorial.
4. Then I built the Radzen application for production by running `./node_modules/.bin/ng build --prod` or (`.\node_modules\.bin\ng build --prod` on Windows). This produces a production Angular build available in the `dist` directory.
5. Finally I ran `firebase deploy` which deployed the application.

---

<div class="post-metadata">

**Author:** ![Narrowbody](https://forum.radzen.com/user_avatar/forum.radzen.com/narrowbody/32/1217_2.png) [@Narrowbody](https://forum.radzen.com/u/Narrowbody)\
**Post date:** [June 17, 2019, 9:35am UTC](https://forum.radzen.com/t/deploy-to-firebase-hosting/1217/3 "2019-06-17T09:35:50Z")

</div>

Thank you so much. Worked like a charm.
