{"componentChunkName":"component---src-templates-blog-post-tsx","path":"/cloud-based-ide/","result":{"data":{"site":{"siteMetadata":{"title":"inssein"}},"markdownRemark":{"id":"555790a6-41b7-5991-9d33-f98bd53c6c5e","excerpt":"This is part 2 of reducing the barrier to entry of web development where I will be exploring AWS Cloud 9 as a solution for a development environment for The…","html":"<p>This is part 2 of <a href=\"https://inssein.comw/eb-development-reducing-barriers-to-entry/\">reducing the barrier to entry of web development</a> where I will be exploring AWS Cloud 9 as a solution for a development environment for <a href=\"https://www.theodinproject.com/\">The Odin Project</a>.</p>\n<p>The goal was to setup a development environment accessible via only a web browser, reducing the barrier to entry as low as possible.</p>\n<h2>AWS Cloud 9</h2>\n<blockquote>\n<p>AWS Cloud9 is a cloud-based integrated development environment (IDE) that lets you write, run, and debug your code with just a browser. It includes a code editor, debugger, and terminal. Cloud9 comes prepackaged with essential tools for popular programming languages, including JavaScript, Python, PHP, and more, so you don’t need to install files or configure your development machine to start new projects. Since your Cloud9 IDE is cloud-based, you can work on your projects from your office, home, or anywhere using an internet-connected machine. Cloud9 also provides a seamless experience for developing serverless applications enabling you to easily define resources, debug, and switch between local and remote execution of serverless applications. With Cloud9, you can quickly share your development environment with your team, enabling you to pair program and track each other’s inputs in real time.</p>\n</blockquote>\n<p>The catch here is that the basic setup will be free for 12 months, and require a credit card, unless you are a student (in which case, take a look at the AWS Educate for Students program).</p>\n<h2>Lets Get Started</h2>\n<ol>\n<li>Sign up for an <a href=\"https://portal.aws.amazon.com/billing/signup#/start\">AWS Account</a>. This includes adding a credit card, and verifying your account.</li>\n<li>\n<p>Create a new <a href=\"https://us-west-2.console.aws.amazon.com/cloud9/home/create\">AWS Cloud9 Environment</a>.</p>\n<ul>\n<li>Pro-tip: Ensure a region is selected in the top right before creating an environment. If you are on the west coast of North America, I suggest <code class=\"language-text\">us-west-2</code> (Oregon).</li>\n<li>The first page, you are just naming the environment.</li>\n<li>In The second page (“Configure Settings”), ensure the Instancy Type is “t2.micro”, and for the platform, I suggest “Ubuntu Server 18.04 LTS” as its more friendly for beginners, especially when searching for help.</li>\n<li>Review the next page and click on “Create Environment”.</li>\n</ul>\n</li>\n<li>Once the environment is setup, you now have a fully functioning development environment with a plethora of languages available.</li>\n</ol>\n<h2>Continuing The Odin Project</h2>\n<p>You are now past the pre-requisite section of The Odin Project, without setting up anything locally, or learning about virtual machines, or figuring out how to dual boot.</p>\n<p>The first section is on <a href=\"https://www.theodinproject.com/courses/web-development-101/lessons/command-line-basics-web-development-101\">Command Line Basics</a>. This is perfect with Cloud 9 as you now have a full terminal available, which is by default in the bottom pane. You can maximize the terminal for this whole section.</p>\n<h2>Hello World</h2>\n<p>If you are not following The Odin Project, or just want to see a quick example of the capabilities of AWS Cloud 9, lets create a quick Hello World example</p>\n<ul>\n<li>On the right side, there is a “Getting Started” option with the first option being “Create File”. Go ahead and click on that.</li>\n<li>In the blank file, paste the content below, and then save the file (File -> Save) and name it <code class=\"language-text\">index.html</code></li>\n</ul>\n<div class=\"gatsby-highlight\" data-language=\"html\"><pre class=\"language-html\"><code class=\"language-html\"><span class=\"token doctype\">&lt;!DOCTYPE html></span>\n\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>html</span> <span class=\"token attr-name\">lang</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>en<span class=\"token punctuation\">\"</span></span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>head</span><span class=\"token punctuation\">></span></span>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>meta</span> <span class=\"token attr-name\">charset</span><span class=\"token attr-value\"><span class=\"token punctuation\">=</span><span class=\"token punctuation\">\"</span>utf-8<span class=\"token punctuation\">\"</span></span> <span class=\"token punctuation\">/></span></span>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>title</span><span class=\"token punctuation\">></span></span>Hello World<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>title</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>head</span><span class=\"token punctuation\">></span></span>\n\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>body</span><span class=\"token punctuation\">></span></span>\n    <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;</span>h1</span><span class=\"token punctuation\">></span></span>Hello World<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>h1</span><span class=\"token punctuation\">></span></span>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>body</span><span class=\"token punctuation\">></span></span>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;/</span>html</span><span class=\"token punctuation\">></span></span></code></pre></div>\n<ul>\n<li>Click on the Run button on the top menu to see what this would look like. It will open an inline browser.</li>\n<li>To open this example in a separate browser window, hit the “Pop Out in New Window” button in the top right.</li>\n</ul>\n<h2>What’s Next</h2>\n<p>Now you have a fully functioning development environment setup using Ubuntu Server 18.04, that is accessible from any computer in the world via just a browser. You can use it to complete The Odin Project, or you can follow any tutorial online that expects you to have linux installed. Instead of typing in the commands in a terminal installed on your machine, you can type it in the browser.</p>\n<p>If you have access to a computer with admin privileges, I explore how we can use <a href=\"https://code.visualstudio.com/\">Visual Studio Code</a> to connect to this same environment in my <a href=\"https://inssein.com/aws-cloud9-vs-code-remote/\">next blog post</a>.</p>","timeToRead":3,"frontmatter":{"title":"Free cloud based integrated development environment","date":"January 19, 2020","description":"Walk through into setting up AWS Cloud 9."}}},"pageContext":{"slug":"/cloud-based-ide/","previous":{"fields":{"slug":"/web-development-reducing-barriers-to-entry/"},"frontmatter":{"title":"Web Development - Reducing the barriers to entry"}},"next":{"fields":{"slug":"/aws-cloud9-vs-code-remote/"},"frontmatter":{"title":"Cloud 9 + Visual Studio Code Remote"}}}}}