/workshop-rendering-the-right-way

πŸ‘©πŸ»β€πŸ”§ A workshop on learning different ways to render so you can render the right way...for you! πŸ’ͺ

Workshop: Render the Right Way

In order to figure out which way to render works best for the project, we need to know the different approaches. In this workshop we'll walk through multiple ways of rendering content, focusing on two approaches: Server Side Rendering (SSR) or Hybrid with Angular Universal and the Jamstack architecture approach with pre-rendering and serverless functions.

We'll also be shining light on the other surrounding concerns like set up, costs, developer experience, and more. The point of this workshop is not to tell you which approach is the best, but to give you the information to make that decision on your own.

The Agenda

:00 - :30

  • intros
  • render refresher: what even is rendering?

:30 - :55

  • hybrid rendering benefits & pitfalls
  • Angular Universal setup

:55 - 1:00

break time ヽ(Β΄βˆ‡Β΄)γƒŽ (βˆ‡Β΄ γƒŽ) ヽ( )γƒŽ (ヽ Β΄βˆ‡) ヽ(Β΄βˆ‡`)οΎ‰

1:00 - 1:30

  • building with Angular Universal: developing, pre-rendering, ssr

1:30 - 1:55

  • the jamstack approach benefits & pitfalls

1:55 - 2:00

break time ヽ(Β΄βˆ‡Β΄)γƒŽ (βˆ‡Β΄ γƒŽ) ヽ( )γƒŽ (ヽ Β΄βˆ‡) ヽ(Β΄βˆ‡`)οΎ‰

2:00 - 2:45

  • pre-rendering with a static site generator, Scully
  • adding hydration with serverless functions

2:45 - 3:00

  • wrap up
  • q & a

Workshop Setup

Now that we know what we're doing here. Let's get setup.

🍎 If you can get your setup ready before the workshop it will allow us to really utilize our workshop time for learning time!

Coding Set Up

You are free to use whatever code editor you prefer. Using VS Code will allow us to code together if needed, but, again, use the editor that's most comfortable.

Angular Requirements

It's always best to yse the latest version of Angular (at the writing of this that is v11). If you don't have the Angular CLI installed already when you do install it will give you the latest version. If not, you can check your version by running the ng --version command in your command line to see if you need to update.

  • To install the Angular CLI run
npm install -g @angular/cli @angular/core

Once you have the Angular CLI installed and up to date, you may want to run the project generation command ng new to make sure everything works ok.

Version Control

I know you never make mistakes BUT just in case, it's always good to commit and commit often. If you don't already have a git account somewhere, may I recommend signing up for GitHub.

Once you have a GitHub account you can make your own version of this repo to work on all the examples.

Either fork this repo or clone it to a local directory:

git clone https://github.com/tzmanics/workshop-rendering-the-right-way

Hosting

For this workshop we'll be using Netlify to throw our site online. If you don't already have an account you can sign up for a free one. It will then hook up to your git account and allow us to make quick work of our CI/CD setup.

Heads up, I work for Netlify. Even before I did, I always recommended using them because I LOVE their developer experience. Which, in turn, is why I happily work on their developer experience team. Just wanted to be transparent πŸ‘.

We'll also be using Firebase. You can click the 'Get started` or 'Sign in' button to create your account.

Checklist

Here's a little tldr; of what to have before coming to the workshop. Again, this helps us to really get the most out of the workshop.

  • A code editor like VS Code, Sublime, sick vim setup, etc.
  • Latest version of the Angular CLI
  • A git account
  • A Netlify account
  • A Firebase account
  • A good knock-knock joke (just in case)

Pre-Workshop Resources

So excited and want to jump in immediately? Here are some resources you can checkout to learn more about SSR and the Jamstack architecture.