Build your First Angular PWA from Scratch (Angular 6 PWA Tutorial)

Поділитися
Вставка
  • Опубліковано 10 лис 2024

КОМЕНТАРІ • 207

  • @DesignCourse
    @DesignCourse  6 років тому +5

    Be sure to subscribe now! My answer for today's question: Absolute, 100% yes. I haven't build a full production PWA, but I definitely plan on it some time in the near future. How about you?

    • @tednivan1638
      @tednivan1638 6 років тому +3

      A pwa using firebase would be awesome :)

    • @ikezedev
      @ikezedev 6 років тому

      Yeah..... I would love to try it too. How do you get user to accept to put it on their device( add to their mobile apps)

    • @AnkitSingh-go3nf
      @AnkitSingh-go3nf 3 роки тому

      can you give me source code of this

  • @kobibentata
    @kobibentata 2 роки тому +10

    Just a small, important note:
    At newer versions of NG, the command for building the app for production is:
    ng build --configuration production
    (--prod is no longer supported)

  • @streetchronicles5693
    @streetchronicles5693 Рік тому

    Got asked to look into this at work. Looked pretty straight forward, and I was able to propose a solution, thanks for this!

  • @sebastiangug8284
    @sebastiangug8284 6 років тому +1

    Man, just wanted to say your tutorials are awesome. I've seen so many people record themselves in a corner as part of the tutorial but make no use of that, the way you do it is useful and really ads to the experience. Great job!

  • @UltraDraft
    @UltraDraft 6 років тому +2

    I did make a PWA a few months ago and it turned out to be one of the best preforming apps I've ever did made

  • @ashishmehradotdev
    @ashishmehradotdev 6 років тому +1

    Awesome tutorial on PWA. I will definitely be going to use it in my future Angular Projects.
    One more thing I want to mention is that there is no need to add service in providers array in the app.module.ts file because we already declared it as a root level service in data.service.ts.

  • @XX-vu5jo
    @XX-vu5jo 6 років тому

    Hoping you will be able to read and reply to this! You are by far the best tutor here. You are a gem in the community! please keep doing this and please do not stop on improving! you are helping so much specially the younger enthusiast....please do more and more time to time. I hope you'll be able to read this...

  • @toastedbagel2100
    @toastedbagel2100 6 років тому

    I'm building a pwa currently for work and this is just what I needed

  • @pavels461
    @pavels461 6 років тому +1

    Really good introduction, I'm waiting for a deeper explanation of PWA concept impatiently, especially via Angular framework.

  • @seanknowles4557
    @seanknowles4557 6 років тому +7

    It would be awesome to get a complete course, with a mobile-first responsive design, installable as an app on a mobile as a pwa that scales when viewing on a desktop (integrated with firestore). I would pay top dollar for a full course including the design phase that you normally include.

    • @DesignCourse
      @DesignCourse  6 років тому +8

      I've been thinking of doing a robust PWA course similar to this. Thanks.

    • @seanknowles4557
      @seanknowles4557 6 років тому +2

      definitely has legs would be a quick early sign up for me would put the cash down already ;). Angular/google are really pushing pwa forward and some big companies are already utilizing the technology. If you decide to do a complete course I will pay for early access / incremental access etc on your site. PWAs are perfect for mvps and rapid prototyping for startup ideas. Awesome stuff, thanks for all the tutorials thus far, really appreciate the content and for your interaction here on the threads fingers crossed you hit the PWA area hard with an in-depth course.

    • @KamelJabber1
      @KamelJabber1 6 років тому

      +1 for this idea

    • @abhim7497
      @abhim7497 5 років тому

      +1 for the idea

  • @uffecarlsson18
    @uffecarlsson18 6 років тому

    Yes. I working on o booking app for a client.. and this is wery interesting with the offlline features.. great job once again.. You are awesome..

    • @uffecarlsson18
      @uffecarlsson18 6 років тому

      Its on Angular 6 and firebase as a backend and authentication.. Its great

  • @GeorgeGomez
    @GeorgeGomez 6 років тому

    Yes ive always wanted to, but never found the time. This video came out at the right time for me because I now have time

  • @v.p22709
    @v.p22709 4 роки тому

    I didn't know what pwa is, but I've just got a good introduction from your video

  • @taaratigadi7065
    @taaratigadi7065 6 років тому

    Its very gud one... it’s awesome 😎
    I started developing last week a new application with angular material.. now i wil turn that to pwa

  • @skokonyane
    @skokonyane 6 років тому +1

    Thanks for the tutorial. I can definitely see potential in this and am planning to try it out today. Again, wonderful tutorial, thanks.

  • @hernanbeatle
    @hernanbeatle 6 років тому +1

    Thanks for your new video, and for your efforts to show the concepts of what you are presenting. It's must be very annoying and time consuming all the testing with and without internet connection, and I guess that after a few hours of adding PWA, I would be messing up with some features, and I would become confused, whether the browser gave me the latest results, or whatever, or if I refreshed unconsciously. I think, that like everything, it's a matter of getting used to it. As for answering your question... I am building a site, and I was planning to use BehaviorSubject to bring a bunch of product items, and avoiding making an API call every time I ask for them... of course, if I refresh, the API will be called again. Maybe adding PWA to create a fully functional offline site might become very complex, and could be very expensive. I guess from a performance standpoint, and for the purpose of making your app faster, this is a great help with little effort.

  • @kefamutuma7402
    @kefamutuma7402 6 років тому

    Been waiting for this vid on PWA literally

  • @sveinsoermo9883
    @sveinsoermo9883 6 років тому

    Yes, will start before the end of the year.

  • @parthabh123123
    @parthabh123123 6 років тому

    Thoroughly enjoyed it. Good work. Very nicely explained.

  • @Bibbs420
    @Bibbs420 4 роки тому

    Thank you! This helped me a lot at building up my PWA.

  • @navislogs8982
    @navislogs8982 6 років тому

    This is going to really help me for my new app, Thanks a lot Gary

  • @SampathLokuge
    @SampathLokuge 6 років тому

    This is really awesome. Please continue this series. Cheers!

  • @richardaginga8901
    @richardaginga8901 4 роки тому

    Built a tic tac toe PWA following Fireship's tutorial. I want to try at least one more.

  • @mrr4181
    @mrr4181 4 роки тому

    best video on the internet

  • @prasadnarayana7257
    @prasadnarayana7257 3 роки тому +1

    can we have a video on PWA's and offline, adding it to mobile screen(android/IOS) using angular latest versions?

  • @Ardiz133
    @Ardiz133 6 років тому

    Yes, I need more PWA tutorial.

  • @Cookie_Wookie_7
    @Cookie_Wookie_7 4 роки тому

    I have built several PWAs before but this is my first one with angular

  • @AdamsTaiwan
    @AdamsTaiwan 6 років тому

    Yes, am planning on doing it with Vue.js.

  • @diegocoding
    @diegocoding 6 років тому +1

    Excelent tutorial, regards from Venezuela!

  • @prasadnarayana7257
    @prasadnarayana7257 3 роки тому +1

    If you have any paid courses related to this I'm ready to join.
    can we have a video on PWA's and offline, adding it to mobile screen(android/IOS) using angular latest versions?

  • @cheuk102
    @cheuk102 6 років тому

    Excelent video, very good explanation of PWA, Hope more videos like this, thanks!

  • @nerdiloo9863
    @nerdiloo9863 5 років тому

    Good one - and yep I intend to update some projects at work to pwa.

  • @JesperPDk
    @JesperPDk 6 років тому +7

    Imagine whether it's possible that you could make a video that shows how to quickly and easily get started with Angular +6 in Visual Studio Code?

  • @konasandeep
    @konasandeep 2 роки тому

    what is the best technology to create a application which should support web and also should support a s a mobile app..with single code base

  • @viveknegi7006
    @viveknegi7006 5 років тому

    Awesome, you presently it very well

  • @JamesSchram102045
    @JamesSchram102045 6 років тому

    Yes PWA's are on my list of projects to do.

  • @Afghah
    @Afghah 6 років тому

    Good stuff ... I've not made a PWA but I'm working on a project that might need it.

  • @adejuwonoshadipe8454
    @adejuwonoshadipe8454 6 років тому

    am going to learn it more extensively and try it out Thanks, once again .

  • @lucasmicheleto2722
    @lucasmicheleto2722 6 років тому

    For those who had an error, use "ng add @angular/pwa@0.6.8" instead

  • @sagarjadhav5429
    @sagarjadhav5429 6 років тому

    Thanks ...have learned a lot of things from this videos.

  • @mukundhbhushan6709
    @mukundhbhushan6709 6 років тому +1

    Great..... waiting for this ever since angular 6 was released

    • @StijnHommes
      @StijnHommes 3 роки тому

      So why were you not waiting to learn how to build real native apps? Are you really THAT keen to get your users to download PWA spam?

    • @mukundhbhushan6709
      @mukundhbhushan6709 3 роки тому

      @@StijnHommes Aren't you too late buddy. I commented this 3 years ago. I wanted to learn it, what's bothering you

  • @tednivan1638
    @tednivan1638 6 років тому +5

    Great video!
    Could you show how to add the pwa to a phone next to native apps?

  • @a.bx000
    @a.bx000 5 років тому

    What languages and libraries must I learn to be able to create PWAs?

  • @nicolasc9244
    @nicolasc9244 6 років тому +1

    Hey love your content. Learning english and web things aswell, thanks you :)

  • @manjunathrm7633
    @manjunathrm7633 5 років тому

    Updated the dataGroup for the API. But the API is not getting cached and getting 504 error for API and also webmanifest. Can anybody please share your suggestions?

  • @johnho8413
    @johnho8413 6 років тому

    Great. I think I can rewrite my mobile app written in Xamarin using Angular and PWA.

  • @eddiejaoude
    @eddiejaoude 6 років тому

    Angular is awesome 👍. PWA rocks 🤓

  • @sundarraj9384
    @sundarraj9384 2 роки тому

    its informative.. Thanks man

  • @ashishsharma-tj6dg
    @ashishsharma-tj6dg 6 років тому

    I have been learning this for a while but when it comes to real world app which requires SEO than we don't know whether this gonna work exactly the same or not. Please make a video on real word SEO in angular.

  • @kiran59345
    @kiran59345 3 роки тому

    Hey, hi guys, I'm new to programming. Can someone explain why there was no error at 18:44 ..?? Since the div element was not closed.

  • @rossanabenati8859
    @rossanabenati8859 4 роки тому

    Good work!

  • @OnTheSpurOfTheMoment
    @OnTheSpurOfTheMoment 6 років тому +2

    I tried converting one of my applications to PWA but had issues with not being able to cache the Bootstrap CSS, Jquery and Bootstrap JS files. I also had CRUD operation using Firebase and that data I was not able to cache. I couldn't find a way to allow the user to add more data offline and then get it to sync when online. If you have any ideas I would surely like to hear about it. Thanks.

  • @ermirb4216
    @ermirb4216 6 років тому

    great work, I would suggest to try live-server package for server, no need to restart it. automatically detects the changes.

  • @Vaishnavu_minaloor
    @Vaishnavu_minaloor Рік тому

    great tutorial

  • @themindstorm9947
    @themindstorm9947 5 років тому +1

    Hey, I was wondering if you could help me with this:
    I put '/favicon.ico. in ngsw-config.json, and it shows up in the application cache (I see it in the chrome developer tools), but in the offline mode, it doesn't show up as the favicon. I there something wrong in the JSON below?
    {
    "index": "/index.html",
    "assetGroups": [{
    "name": "app",
    "installMode": "prefetch",
    "resources": {
    "files": [
    "/favicon.ico",
    "/index.html",
    "/*.css",
    "/*.js"
    ]
    }
    }, {
    "name": "assets",
    "installMode": "lazy",
    "updateMode": "prefetch",
    "resources": {
    "files": [
    "/assets/**"
    ]
    }
    }]
    }
    Thanks!

  • @gaurishrane9818
    @gaurishrane9818 6 років тому

    Amazing Really Awesome Presentation

  • @paulwade1123
    @paulwade1123 5 років тому +1

    Hi Gary,
    Thanks for producing this tutorial.
    I've got my PWA Angular web app partially working, but the http-server doesn't handle other routes eg. /Home or /About.
    Your example works fine, as it only has one route defined, but my app has multiple routes.
    Any help appreciates.
    Regards,
    Paul

  • @luisg.sandoval2046
    @luisg.sandoval2046 6 років тому

    I'm planning on building one

  • @badtwin82
    @badtwin82 6 років тому

    I use PWA in my latest two angular projects and, with workbox, also in another project I'm currently working on

  • @JohnathanHendrix
    @JohnathanHendrix 5 років тому

    Can you use cacheConfig on the assetGroups? I'm trying to resolve lighthouse issue with how long some files in my assetGroups are cached.

  • @gp_2024_mmm
    @gp_2024_mmm 6 років тому

    Awesome tutorial! Thank you.

  • @trishanvassan3745
    @trishanvassan3745 5 років тому

    Hi when I 'http-server -o' from my dist folder it opens up my web browser with this error 'ERR_INVALID_REDIRECT' - Please do help me with this

    • @Enothrin
      @Enothrin 5 років тому

      npm install
      -g http-server@0.9.0 i hope this helps

  • @kenvng
    @kenvng 5 років тому +1

    Running into another issue.
    So when I was trying to add the PWA functionality with 'ng add @angular/pwa' and got this message 'Maximum call stack size exceeded'. How do I fix this? Thanks

    • @kenvng
      @kenvng 5 років тому

      SOLVED: so in the last problem i installed NPM globally and version was mismatch between global and local so I have to update the local as well:
      npm install --save-dev @angular/cli@latest
      npm install
      This was done inside the local/project folder.

  • @saritanair6707
    @saritanair6707 4 роки тому

    Can we create pwa with angular version 4?

  • @pranayamr
    @pranayamr 4 роки тому

    Can I generate production build with both PWA/Service worker and App Shell both ? or this are separate features cannot be placed in one single production build.
    or yes i.e. can be generated can anyone please let me know how ?

  • @dharmeshsharma
    @dharmeshsharma 5 років тому

    I have simple confusion and i'm just start first angular application. I have already developed one application in MVC C# so i want to upgrade this application into Angular. Now i have html page design which is full jquery based like sliders, menus, jqueryui datepickers and many areas where jquery is using. now how to use these pages in same with angular to develop other components. please guide me

  • @aptustec
    @aptustec 6 років тому

    To answer your question: Yes, I'm eager to plan/develop a PWA. This video -> ua-cam.com/video/imaTBx4jbwY/v-deo.html gave me the motivation, and this your coursetro video gave me the kickstart will to start doing it!
    My aim is to have a PWA that has login, a lightweight local DB (maybe?), and push notifications. Don't know, maybe as I go along I will get more ideas!
    Thank you for your videos Gary!

  • @maq2977
    @maq2977 6 років тому

    If You can I will please to explain more about the PWA Notifications (like facebook, tinder and more has) because firebase doesn't explain it very well :/

  • @fit_with_kumar
    @fit_with_kumar 6 років тому +2

    Thanks a lot for the video .i learn new thing and this was my first PWA app :-P

  • @MahmoudAhmed-qu2wm
    @MahmoudAhmed-qu2wm 6 років тому

    Great, Will it a complete playlist?
    Thank you very much

  • @sivasankarchimata1882
    @sivasankarchimata1882 6 років тому

    Hello sir i am looking for a tutorial on MYSQL with Angular & Node.js ,So can you please post a video with crud operation MYSQL with ANGULAR & NODE.JS

  • @aaronaaronaaron5922
    @aaronaaronaaron5922 5 років тому

    really thanks, man 🍺

  • @AjayMandal-gz9si
    @AjayMandal-gz9si 2 роки тому

    Hi Gary, love all your tutorials. Had a quick question, since you are an authority on this. We are planning to build a PWA solution. Question: Is there some unique/special design consideration during (UX/UI/ Branding) phase of planning a PWA that is different than a responsive web design one has to consider/include while building it out. Thank AJ

  • @luisg.sandoval2046
    @luisg.sandoval2046 6 років тому

    AWESOME VIDEO!!!!!

  • @krishnareddykonduri4280
    @krishnareddykonduri4280 3 роки тому

    I want one video for social media sharing with image and content

  • @FangerZero
    @FangerZero 5 років тому +1

    I've been attempting to add PWA to my current Angular 8 application. I was able to easily add service workers, but adding things likes "Add to Home Screen", "Background Sync", and "Push Notifications" are proving difficult. Even trying to get it to work on my Mobile Phone is a pain to test.

    • @prasadnarayana7257
      @prasadnarayana7257 3 роки тому

      Ya even I'm feeling it,
      It's little difficult to find answers related to PWA angular questions.
      Did you made any progress in PWA using Angular?

  • @kaylrabanzo8425
    @kaylrabanzo8425 6 років тому

    Big thank to you my friend :D

  • @the_thinkster
    @the_thinkster 3 роки тому

    Awesome explanation. but i found absolutely no tutorials on how to exclude some JS files or a folder of JS files. i know i can use ! in pattern but its not working. even if i remove all the rules by default. its caching all.

  • @heisdivuzki
    @heisdivuzki 4 роки тому

    Can you do react js

  • @80amnesia
    @80amnesia 6 років тому

    @16:15 ngOnInit() ... he's not inheriting OnInit on the --> "AppComponent implements OnInit" . How come it is working? I'm using ng 5, is this different in ng 6?

  • @supbra1
    @supbra1 6 років тому

    Thanks so much! really helpful

  • @koukiadem
    @koukiadem 6 років тому +9

    Good Tutorial! why you didn't use ng serve ? why building and http-server ?

    • @DesignCourse
      @DesignCourse  6 років тому +19

      Good question. When developing your PWA app, it's perfectly fine to use 'ng serve' while developing (in fact that's preferable). But PWA functionality is only added when you build for production. I was simply demonstrating PWA functionality, thus had to keep building and starting a server.

    • @koukiadem
      @koukiadem 6 років тому +1

      I get it .. Thank you Mr.Gary.. Love your Content.. Keep up the good work ♥

    • @oxooxoxoxxoxx351
      @oxooxoxoxxoxx351 5 років тому

      ​@@DesignCourse We can change this behaviour by configure the ServiceWorkerModule in the AppModule `imports` section like this:
      ServiceWorkerModule.register('ngsw-worker.js', { enabled: true })
      (Sorry for my English)

    • @ketanmohide306
      @ketanmohide306 5 років тому

      @@DesignCourse Can you also tell me how can I resolve CORS issue in pwa. I am calling my backend api which runs on 9010 port from pwa but not able to do that even after creating a proxy file which actually worked when i had a simple angular app last time.

  • @vipinrajbuny
    @vipinrajbuny 6 років тому

    Yes I am going to create a pwa

  • @DiscoverPakistanShorts
    @DiscoverPakistanShorts 6 років тому

    please tell me,
    it's possible how we send data/request from offline PWA ( progressive web app ) to MongoDB or any other live server.
    or PWA is used for only retrieving data from services

  • @PreetJashan88
    @PreetJashan88 5 років тому

    Sir i tried it first then service workers get registered but when i tried with second link that is generated with http-server and network IP address... Service workers is not working with that link
    IP:8080

  • @testaptus5508
    @testaptus5508 5 років тому

    I am trying this in localhost it is not showing me , when i clicked offline it is showing no internet i am using angular 6 please help

  • @sagarjoshi8444
    @sagarjoshi8444 5 років тому +1

    can I develop PWA using Angular 7 + asp.net core REST api ??

  • @eknimation
    @eknimation 5 років тому

    Thank you for very good video

  • @kenvng
    @kenvng 5 років тому

    I was un-able to http-server. Everything good so far until this point. I got an error message:
    'http-server' is not recognized as an internal or external command,
    operable program or batch file.
    Am i missing something? Can you give me a tip on install what I am missing? Thanks

    • @kenvng
      @kenvng 5 років тому

      Found the answer: NPM needs to be install globally with the following command: npm install -g http-server

  • @MohammadAbouBasha
    @MohammadAbouBasha 5 років тому

    why don't you use ng serve directly?
    instead of running a separate webserver. ng serve is smart enough that it rebuild and refreshes the browser if you update the code?
    or did you intentionly do that because you want to use it as a production code, I'm not sure if ng serve can run in production mode!

  • @dinonppa1
    @dinonppa1 6 років тому

    Can you do a tutorial on bootstrap studio?

  • @colleen.in.motion4787
    @colleen.in.motion4787 5 років тому +1

    Anyone else having issues with the SwUpdate? Neither the span or the update automatically works for me

  • @Breaak7
    @Breaak7 5 років тому +1

    fking great tutorial as always dude, thank you so much from sudamerica !

  • @luarbballa2534
    @luarbballa2534 5 років тому

    Hello there.
    Thank you for explaining how to use PWA but can you also explain how to remove it ?
    Both from project and from the browsers that loaded this service worker ?
    Thank you

  • @rakeshnayak2072
    @rakeshnayak2072 5 років тому

    Hi I am working on Angular 7 and tried to implement PWA to my website. when i run the http-server -o command, it opened 127.0.0.1:8082 with following error. How to fix.
    This page isn’t working 127.0.0.1 sent an invalid response.
    ERR_INVALID_REDIRECT

    • @omarezzine9554
      @omarezzine9554 5 років тому

      same here but check localhost:[port]/index.html this should make it (still not the most convenient way, just a workaround)

    • @Enothrin
      @Enothrin 5 років тому

      install an older version like 0.9.0 "npm install
      -g http-server@0.9.0
      "

  • @AnilSahu-zx6wk
    @AnilSahu-zx6wk 6 років тому

    Yes i am very interseted in pwa application but due to some error i leave in middle every time.

  • @ajanieniola9172
    @ajanieniola9172 6 років тому

    wonderful tutorial

    • @DesignCourse
      @DesignCourse  6 років тому

      Ajani put the video speed on 50x and knows this to be true... It's totally true.

  • @seanknowles4557
    @seanknowles4557 6 років тому

    your the best!! lol, was going to ask you for this!

  • @pratikvaity6833
    @pratikvaity6833 5 років тому

    Is there any other method to make it work in an Ionic App??

  • @UltraDraft
    @UltraDraft 6 років тому

    Notification squaad!!!
    🔥🔥🔥🔥