codelab icon indicating copy to clipboard operation
codelab copied to clipboard

Deploy 30 second playground separately from the codelab

Open kirjs opened this issue 5 years ago • 0 comments

What the issue is about:

We have an Angular playground deployed as a part of the codelab.

There are several things about it which are not great:

  • It allows users to run and share arbitrary code, which means it could potentially steal cookies from the same domain (Which we don't have yet, but are planning to have)
  • It never changes, but It gets to be built as a part of the codelab every time, making the codelab build longer

Solution

Move it out to a separate nx project

Where to start

  • [ ] move the code The code is in apps/codelab/src/app/codelabs/angular/playground it should go to apps/playground

We're using nx, red up more about it and how to create a new app.

  • [ ] Set up the build process See how other apps do it in package.json

  • [ ] Set up the deployment Right now URL Should be https://codelab.fun/angular/playground It should be: https://playground.codelab.fun

Ping @kirjs for help with that

kirjs avatar Sep 27 '19 19:09 kirjs