{"id":510,"date":"2023-02-17T05:00:00","date_gmt":"2023-02-17T13:00:00","guid":{"rendered":"https:\/\/www.angulartraining.com\/daily-newsletter\/?p=510"},"modified":"2023-02-16T14:58:08","modified_gmt":"2023-02-16T22:58:08","slug":"using-stackblitz-as-an-angular-playground","status":"publish","type":"post","link":"https:\/\/www.angulartraining.com\/daily-newsletter\/using-stackblitz-as-an-angular-playground\/","title":{"rendered":"Using Stackblitz as an Angular playground"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The easiest way to get an Angular development environment up and running these days is to use <a href=\"https:\/\/stackblitz.com\/\" target=\"_blank\" rel=\"noopener\" title=\"\">Stackblitz<\/a>. I mention Stackblitz today because a few readers have sent me links to Github repos that they use when they want to test some of the ideas of this newsletter. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">While Github is perfectly fine, creating a new project with Angular CLI, downloading all dependencies then committing to Github can take a few minutes each time, while Stackblitz gets you started in just 2 seconds. All you have to do is head to <a href=\"https:\/\/stackblitz.com\/\" target=\"_blank\" rel=\"noopener\" title=\"\">https:\/\/stackblitz.com\/<\/a> and click the Angular button:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/02\/image-32-1024x317.png\" alt=\"\" class=\"wp-image-512\" width=\"558\" height=\"173\" srcset=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/02\/image-32-1024x317.png 1024w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/02\/image-32-300x93.png 300w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/02\/image-32-768x238.png 768w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/02\/image-32.png 1402w\" sizes=\"auto, (max-width: 558px) 100vw, 558px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Stackblitz is excellent for a few more reasons:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>If you create your free account on Stackblitz, you can <strong>save your projects for later<\/strong> and share them with others with just one URL. One click on the URL and the app is up and running; no installation nor hosting is needed! Your friend can then fork your project if needed.<br><\/li>\n\n\n\n<li>Stackblitz can be used <strong>to import (and sync with) <a href=\"https:\/\/developer.stackblitz.com\/guides\/user-guide\/importing-projects#import-from-github\" target=\"_blank\" rel=\"noopener\" title=\"\">Github repos<\/a><\/strong>, too. The URL <code>stackblitz.com\/github\/{GITHUB_USERNAME}\/{REPO_NAME}<\/code> can be used to access a public repo on Stackblitz. For instance: <a href=\"https:\/\/stackblitz.com\/github\/alcfeoh\/ng-weather\" target=\"_blank\" rel=\"noopener\" title=\"\">stackblitz.com\/github\/alcfeoh\/ng-weather<\/a><br><\/li>\n\n\n\n<li>Stackblitz has an <strong>Angular CLI-like tool<\/strong> accessible with a right click called &#8220;Angular generator&#8221;:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/02\/image-33.png\" alt=\"\" class=\"wp-image-513\" width=\"456\" height=\"322\" srcset=\"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/02\/image-33.png 946w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/02\/image-33-300x212.png 300w, https:\/\/www.angulartraining.com\/daily-newsletter\/wp-content\/uploads\/2023\/02\/image-33-768x542.png 768w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/figure>\n<\/div>\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You can also use it for full-stack projects using Node.js (and possibly <a href=\"https:\/\/www.angulartraining.com\/daily-newsletter\/how-to-mock-you-entire-backend-server\/\" target=\"_blank\" rel=\"noopener\" title=\"\">JSON server<\/a> covered earlier!), which makes Stackblitz even more powerful. And it&#8217;s 100% free!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The easiest way to get an Angular development environment up and running these days is to use Stackblitz. I mention Stackblitz today because a few readers have sent me links to Github repos that they use when they want to test some of the ideas of this newsletter. While Github is perfectly fine, creating a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-510","post","type-post","status-publish","format-standard","hentry","category-tools"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/comments?post=510"}],"version-history":[{"count":5,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":517,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/posts\/510\/revisions\/517"}],"wp:attachment":[{"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/media?parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/categories?post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.angulartraining.com\/daily-newsletter\/wp-json\/wp\/v2\/tags?post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}