FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính
No Result
View All Result
FTLinuxCourse - Tin tổng hợp mới nhất không thể bỏ lỡ
No Result
View All Result

AngularJS with Gulp Step by Step

admin by admin
May 25, 2020
in Công Nghệ
47
AngularJS with Gulp Step by Step



Step by step guide to making a production ready AngularJS app with Gulp. (Source code:

In this video I’m going to explain how to create a AngularJS app using Angular 1 and I’m going to explain how to do a basic hello world app using Gulp to deploy and test it locally.

It’s a bit more complicated than a hello world app because it’s going to focus on the deployment side of it, which would be suitable for a commercial environment.

For this tutorial we’ll be using Angular, Gulp, Browsersync and NPM (node package manager).

01:30 Install the latest version of node
02:00 Start by opening the terminal and setting up your workspace
02:50 Using the Atom editor
03:27 Initialise NPM repository
04:30 Install required packages for project
05:25 First dependency to install is Angular
06:40 Next install another Angular module called Angular route
07:18 Next install dependencies for local development and deployment of the app (Gulp)
09:10 Install Gulp-concat to merge files
10:17 Final dependency to install is Browsersync
12:15 Create a file structure
16:21 Create a styles.json file (scripts and styles)
18:48 Add our source code
20:57 Next add gulp file
24:54 Create Gulp tasks to automate workflow
32:40 Create a build task to build our project
33:56 Start our browsersync server
34:45 Create a final task to start our development server
36:12 Gulp watch to watch this directory
37:30 Test the deployment
38:20 Create our Angular app starting with the index.html file
41:24 Create a homepage
43:01 Next create new JavaScript files
46:52 Make a controller
50:03 Run Gulp start, go to browser and navigate to url & troubleshoot
54:59 Demonstrate the real-time changes

And that’s it!

We’ve gone through how to build a basic Angular app in a way that you can now build on top of this app. This is a base you can use for future projects or business ideas.

Thanks for watching.

If you like this video check out my tutorials on

Learn how to build a backend using Python & Django REST Framework:

Nguồn: https://ftlinuxcourse.com

Xem thêm bài viết khác: https://ftlinuxcourse.com/cong-nghe

Xem thêm Bài Viết:

  • Tổng hợp cách xóa dữ liệu trùng nhau trong excel
  • Bật mí top 3 cách fix lỗi iPhone thỉnh thoảng bị đơ cảm ứng
  • Top 2 phương pháp lọc email từ comment facebook hiệu quả hiện nay
  • Hướng dẫn cách xác định công suất lốc tủ lạnh, tủ đông…
  • Cách tạo thông báo khi nhập trùng dữ liệu trong excel
Tags: Youtube
Previous Post

Em Yêu Anh Như Câu Hò Ví Dặm Karaoke Tone Nữ | Bản Chuẩn 2020 - Nhạc Sống Thanh Ngân

Next Post

Hướng dẫn khắc phục lỗi vào YouTube trên smart tivi LG | Điện máy XANH

Next Post
Hướng dẫn khắc phục lỗi vào YouTube trên smart tivi LG | Điện máy XANH

Hướng dẫn khắc phục lỗi vào YouTube trên smart tivi LG | Điện máy XANH

Comments 47

  1. Humphrey Kiboi says:
    3 years ago

    Nice intro to gulp. I am actually migrating an angularJs app to angular 9 and i found this quite usefull

    Reply
  2. Peascooter says:
    3 years ago

    Thankyou for making and uploading this tutorial, really helped me a lot.

    Reply
  3. Srikanth Uppala says:
    3 years ago

    Super… Thank you so much.

    Reply
  4. Tony Gonzalez says:
    3 years ago

    How about if you use bower to install the dependencies?

    Reply
  5. Marcin Kapusta says:
    3 years ago

    Great tutorial! Its only Hello World but very useful Hello World that You can build on it 😉 The one main drawback of this is that some modules needs to be loaded in specific order and if You have a lot of modules then You can't just concat js files with stream src defined by "**/*.js"

    Reply
  6. JiJesH V U says:
    3 years ago

    which version of glup are you using??

    Reply
  7. Joco Corey says:
    3 years ago

    what did you deploy exactly? you just created an application. i thought this was a deployment video?

    Reply
  8. kal says:
    3 years ago

    you so great man , thank you very very much.

    Reply
  9. Ryeback101 says:
    3 years ago

    Great video and tutorial. Its really good that you explain the 'why' behind it all.

    Reply
  10. Jackie Tran says:
    3 years ago

    I did as the tutorial, it's worked but when I access localhost:3000 it isn't auto add suffix "/#/", pls help me. I'm using angular-ui-router instead of angular-route

    Reply
  11. krige says:
    3 years ago

    To run a sequence of multiple tasks in gulp you don't need gulp.start, you can write gulp.task('build', ['css', 'js', 'html']);

    Reply
  12. krige says:
    3 years ago

    Brilliant! Thank you very much for making this video, everything is more clear now! I subscribed to your channel, hope to see more videos like this.

    Reply
  13. Stéphane Bouet says:
    3 years ago

    Excellent work ! Than you !!

    Reply
  14. Zohab Ali says:
    3 years ago

    Very Informative! Thank you so much 🙂

    Reply
  15. Match Chow says:
    3 years ago

    you are awesome, very easy to understand for me, thanks!

    Reply
  16. Yogesh Lachheta says:
    3 years ago

    You Are a Awesome. Excellent Buddy.

    Reply
  17. Mile Mijatovic says:
    3 years ago

    Does not work for me. When I type 'gulp start' , I god this error
    'css' errored after 6.65 ms
    TypeError: browserSync.reload is not a function

    How to fix this error?

    Reply
  18. Eric Cantu says:
    3 years ago

    Brilliant example. I'm looking for MAKE replacement, maybe GAKE?

    Reply
  19. Andrii Mishchenko says:
    3 years ago

    Cool video, though changing background colors at the end nearly broken my eyes

    Reply
  20. Mohamed Tarek says:
    3 years ago

    Awesome video

    Reply
  21. Md Junaid says:
    3 years ago

    Hey man, I have done everything according to the video and every file has been generated in the dist folder but for some reason, my browser isn't loading the views folder but it is generated in dist folder. since the views folder isn't shown in the browser it's not generating the views home.html, please help me!!!

    Reply
  22. junaid khan says:
    3 years ago

    Thanks for the tutorial.It was very helpful.

    Reply
  23. Nikhil Nambiar says:
    3 years ago

    Thank you for this video. I am getting this error when I run "gulp start" Task 'start' is not in your gulpfile. Please help!

    Reply
  24. rishabh aggarwal says:
    3 years ago

    Gulp is easy and to the point.

    Reply
  25. Swapnil Singh says:
    3 years ago

    Truly awesome and descriptive to the core tutorial!!

    Reply
  26. Min Li says:
    3 years ago

    I think You are right, this kind explanation is needed especialy for beginner

    Reply
  27. Raghu P says:
    3 years ago

    How to add bootstrap to the project, when I am trying add with npm, I am getting error, do I need to add anything in gulp file

    Reply
  28. Rajeev Akotkar says:
    3 years ago

    Thanks a lot !!!

    Reply
  29. Angel Vega says:
    3 years ago

    Fantastic tutorial!

    Reply
  30. Manoj Joshi says:
    3 years ago

    Thanks you very much!! Great work!!

    Reply
  31. Sandra Barkhuizen says:
    3 years ago

    Great video. Learnt allot from this, thanks for sharing.

    Reply
  32. Zeeshan Ali says:
    3 years ago

    Hey Mark, the angular dependecies that you have mentioned in the scripts.json file are not included in the scripts.js file of the dist folder, it has got only the user defined javascript file, so I get an error that angular is not defined in the browser console

    Reply
  33. Sameer Nimje says:
    3 years ago

    This is an awesome video, explaining all the technologies clean n clear. thank you.
    Would like to sass, minification n typecript videos

    Reply
  34. Frank Johansen says:
    3 years ago

    Great. The hardest part of javascript these days are setting things up with Gulp, Grunt or Webpack, hehe.

    Reply
  35. Aayush Kumar says:
    3 years ago

    i have only one word "thanks, thanks a lot"

    Reply
  36. Azergoo says:
    3 years ago

    Really good video! Clean code all the way through.

    Reply
  37. Anderson Magalhães says:
    3 years ago

    Amazing HELPED ME A LOT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!…THANKS

    Reply
  38. Juan Delia says:
    3 years ago

    Hi there! Excelente video. As you said on it, there isnt to much videos that show how would you actually manage a real "production ready" application layout.

    I wanted to ask you, since you are using both, at dev and prod time, the "concatenated" file to run (for sure you will apply mimify on the prod later), how do you handle the debugging on an IDE, lets say Intellij.

    I'm asking it, since when you put the breakpoints, you do it on the not contactenated file you edit, but at runtime, the file is actually another.
    Is there any mechanism to have both? concatenation but at the same time, "clever" debug binding between the separated files and the concatenated one?

    Thanks again for the video.
    Cheers

    Reply
  39. abhinandhan says:
    3 years ago

    Awesome Buddy 🙂 helped me alot

    Reply
  40. ravendcode says:
    3 years ago

    https://github.com/ravendcode/ng-gulp

    Reply
  41. Brian Foster says:
    3 years ago

    Thank you for this tutorial. This has been the best explanation to these new technologies I have found.

    Reply
  42. Deo Wibawa says:
    3 years ago

    54:35 Gotcha !
    LOL..

    Btw, thank you for the awesome tutorial !
    please make more videos like this.

    Reply
  43. Chandra Sekhar says:
    3 years ago

    Thank you Very much and I can say your awesome

    Reply
  44. Lee Chess says:
    3 years ago

    There's only one word to define this video: magnificent.

    Reply
  45. CyberGolem says:
    3 years ago

    PLZ!! I'd love a video on how to hook up SASS and Pug into this same workflow. Autoprefixer would be a bonus.

    BTW: Coolness points for explaining things as you go along. This makes you a hidden wonder of YouTube's coding community. Hopefully not hidden for long.!

    Reply
  46. srinivas reddy says:
    3 years ago

    Thank's

    Reply
  47. Tom Ormiston says:
    3 years ago

    thanks for this 😉

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Xem Thêm

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

Những điều bạn có thể chưa biết về Thánh sim Hi Vietnamobile

January 17, 2021
Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

Xiaomi Mi 10 Pro thiết kế thời thương, màn hình cong ấn tượng

June 1, 2021
Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

Địa chỉ in bao bì nhựa tại Đà Nẵng chiết khấu cao

January 26, 2021
Địa chỉ bán đèn tuýp LED Philips uy tín và chất lượng trên thị trường?

Bán đèn tuýp led Philips – Skyled

July 27, 2020
Lựa chọn chủ đề in áo thun phù hợp

Lựa chọn dịch vụ in áo thun cotton cần lưu ý gì?

August 2, 2020
Cần xác định được điểm đặt pallet cao nhất để mua xe

Bí quyết chọn mua xe nâng điện đẩy tay

August 3, 2020

Về Chúng Tôi

Báo ftlinuxcourse.com 24h – Đón xem những tin tức mới nhất về tình hình chính trị, xã hội, an ninh trật tự, văn hóa – giải trí, thể thao, thông tin trong ngày.

  • Liên Hệ
  • Chính Sách Bảo Mật

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.

No Result
View All Result
  • Home
  • Lập Trình Linux
  • Công Nghệ
  • Máy Tính

© 2023 JNews - Premium WordPress news & magazine theme by Jegtheme.