You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain topics can be skipped if you have prior experience in them.
51
52
@@ -366,6 +367,7 @@ We have found the [webpack walkthrough](https://survivejs.com/webpack/foreword/)
366
367
367
368
-[Rollup](https://rollupjs.org/)
368
369
-[Browserify](http://browserify.org/)
370
+
-[Parcel](https://parceljs.org/)
369
371
370
372
## Package Management - Yarn
371
373
@@ -394,7 +396,7 @@ [email protected] was [released in May 2017](https://github.com/npm/npm/releases/tag/v5.
394
396
395
397
## Continuous Integration
396
398
397
-
We use[Travis CI](https://travis-ci.com/) for our continuous integration (CI) pipeline. Travis is a highly popular CI on Github and its [build matrix](https://docs.travis-ci.com/user/customizing-the-build#Build-Matrix) feature is useful for repositories which contain multiple projects like Grab's. We configured Travis to do the following:
399
+
We used[Travis CI](https://travis-ci.com/) for our continuous integration (CI) pipeline. Travis is a highly popular CI on Github and its [build matrix](https://docs.travis-ci.com/user/customizing-the-build#Build-Matrix) feature is useful for repositories which contain multiple projects like Grab's. We configured Travis to do the following:
398
400
399
401
- Run linting for the project.
400
402
- Run unit tests for the project.
@@ -413,8 +415,9 @@ We use [Travis CI](https://travis-ci.com/) for our continuous integration (CI) p
Traditionally, web servers that receive a request for a webpage will render the contents on the server, and return a HTML page with dynamic content meant for the requester. This is known as server-side rendering. As mentioned earlier in the section on Single-page Apps, modern web applications do not involve server-side rendering, and it is sufficient to use a web server that serves static asset files. Nginx and Apache are possible options and not much configuration is required to get things up and runnning. The caveat is that the web server will have to be configured to route all requests to a single entry point and allow client-side routing to take over. The flow for front end routing goes like this:
420
423
@@ -424,11 +427,13 @@ Traditionally, web servers that receive a request for a webpage will render the
424
427
1. The client-side routing library reads the current route, and communicates to the MVC (or equivalent where relevant) framework about the current route.
425
428
1. The MVC JavaScript framework renders the desired view based on the route, possibly after fetching data from an API if required. Example, load up `UsersController`, fetch user data for the username `john` as JSON, combine the data with the view, and render it on the page.
426
429
427
-
A good practice for serving static content is to use caching and putting them on a CDN. We use [Amazon Simple Storage Service (S3)](https://aws.amazon.com/s3/) because it can both host and act as a CDN for our static website content. We find that it is an affordable and reliable solution that meets our needs. S3 provides the option to "Use this bucket to host a website", which essentially directs the requests for all routes to the root of the bucket, which means we do not need our own web servers with special routing configurations.
430
+
A good practice for serving static content is to use caching and putting them on a CDN. We use [Amazon Simple Storage Service (S3)](https://aws.amazon.com/s3/) for hosting our static website content and [Amazon CloudFront](https://aws.amazon.com/cloudfront/) as the CDN. We find that it is an affordable and reliable solution that meets our needs.
431
+
432
+
S3 provides the option to "Use this bucket to host a website", which essentially directs the requests for all routes to the root of the bucket, which means we do not need our own web servers with special routing configurations.
428
433
429
434
An example of a web app that we host on S3 is [Hub](https://hub.grab.com/).
430
435
431
-
Other than hosting the website, we also use S3 to host the build `.tar` files generated from each successful Travis build.
436
+
Other than hosting the website, we also use S3 to host the build `.tar` files generated from each successful CI build.
432
437
433
438
#### Study Links
434
439
@@ -442,7 +447,7 @@ Other than hosting the website, we also use S3 to host the build `.tar` files ge
442
447
443
448
## Deployment
444
449
445
-
The last step in shipping the product to our users is deployment. We use[Ansible Tower](https://www.ansible.com/tower) which is a powerful automation software that enables us to deploy our builds easily.
450
+
The last step in shipping the product to our users is deployment. We used[Ansible Tower](https://www.ansible.com/tower) which is a powerful automation software that enables us to deploy our builds easily.
446
451
447
452
As mentioned earlier, all our commits, upon successful build, are being uploaded to a central S3 bucket for builds. We follow semver for our releases and have commands to automatically generate release notes for the latest release. When it is time to release, we run a command to tag the latest commit and push to our code hosting environment. Travis will run the CI steps on that tagged commit and upload a tar file (such as `1.0.1.tar`) with the version to our S3 bucket for builds.
448
453
@@ -459,6 +464,20 @@ This whole process is done under 30 seconds and using Tower has made deployments
After shipping the product, you would also want to monitor it for any errors.
474
+
475
+
Apart from network level monitoring from our CDN service provider and hosting provider, we use [Sentry](https://sentry.io/) to monitor errors that originates from the app logic.
476
+
477
+
#### Study Links
478
+
479
+
-[Sentry Homepage](https://sentry.io/)
480
+
462
481
### The Journey has Just Begun
463
482
464
483
Congratulations on making it this far! Front end development today is [hard](https://hackernoon.com/how-it-feels-to-learn-javascript-in-2016-d3a717dd577f), but it is also more interesting than before. What we have covered so far will help any new engineer to Grab's web team to get up to speed with our technologies pretty quickly. There are many more things to be learnt, but building up a solid foundation in the essentials will aid in learning the rest of the technologies. This helpful [front end web developer roadmap](https://github.com/kamranahmedse/developer-roadmap#-front-end-roadmap) shows the alternative technologies available for each aspect.
0 commit comments