Fireship · @fireship
How to Deploy an Angular App to Firebase Hosting
Uploaded April 19, 2017 · Length 1:55
Summary
deploy angular app to firebase hosting in seconds with free low volume usage
- angular firebase hosting
- firebase deployment
- angular deployment
- static hosting
- firebase cli
Transcript preview
The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.
- 0:00
in this episode we're going to deploy an
- 0:02
angular 4 app to Firebase hosting after
- 0:05
some initial configuration you can
- 0:07
deploy your app to Firebase in a matter
- 0:08
of seconds the best part is that it's
- 0:10
free for low volume usage and you'll be
- 0:12
prepared to scale up as your app
- 0:14
[Music]
- 0:18
grows running the NG build command will
- 0:21
compile and Minify your code into a
- 0:23
single package located in the disc
- 0:25
folder you could drop the contents of
- 0:27
this directory into virtually any static
- 0:30
hosting platform or even an S3 bucket
- 0:33
and your site would be ready to serve
- 0:34
traffic right
- 0:35
[Music]
- 0:37
away Firebase has a nice command line
- 0:39
package for deployment install it with
- 0:42
npm then log into your Firebase account
- 0:44
from the command
- 0:49
line make sure you're in the top level
- 0:51
directory of your angular app then run
- 0:53
Firebase emit this will take you through
- 0:56
a onetime configuration for your app for
- 0:58
the most part you can stick with the
- 1:00
default settings except in these
- 1:02
following
- 1:03
cases choose hosting on the first
- 1:06
question change the public folder to
- 1:09
dist when asked because that will
- 1:11
default to
- 1:12
public configure as a single page app
- 1:15
answer yes if Firebase asks to overwrite
- 1:19
your index.html file respond with
- 1:25
no now your app should be ready to
- 1:27
deploy run the Firebase deploy command
- 1:30
then check the project URL that it gives
- 1:32
back to you to make sure everything
- 1:33
looks
- 1:40
good that's all for Firebase deployment
- 1:42
see you next
- 1:45
time audio
- 1:47
[Music]
- 1:53
jum


