5 lines
9.1 KiB
JSON
5 lines
9.1 KiB
JSON
|
{
|
||
|
"id": "guide/setup-local",
|
||
|
"title": "Setting up the local environment and workspace",
|
||
|
"contents": "\n\n\n<div class=\"github-links\">\n <a href=\"https://github.com/angular/angular/edit/master/aio/content/guide/setup-local.md?message=docs%3A%20describe%20your%20change...\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n</div>\n\n\n<div class=\"content\">\n <h1 id=\"setting-up-the-local-environment-and-workspace\">Setting up the local environment and workspace<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/setup-local#setting-up-the-local-environment-and-workspace\"><i class=\"material-icons\">link</i></a></h1>\n<p>This guide explains how to set up your environment for Angular development using the <a href=\"cli\" title=\"CLI command reference\">Angular CLI tool</a>.\nIt includes information about prerequisites, installing the CLI, creating an initial workspace and starter app, and running that app locally to verify your setup.</p>\n<div class=\"callout is-helpful\">\n<header>Try Angular without local setup</header>\n<p>If you are new to Angular, you might want to start with <a href=\"start\">Try it now!</a>, which introduces the essentials of Angular in the context of a ready-made basic online store app that you can examine and modify. This standalone tutorial takes advantage of the interactive <a href=\"https://stackblitz.com/\">StackBlitz</a> environment for online development. You don't need to set up your local environment until you're ready.</p>\n</div>\n<a id=\"devenv\"></a>\n<a id=\"prerequisites\"></a>\n<h2 id=\"prerequisites\">Prerequisites<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/setup-local#prerequisites\"><i class=\"material-icons\">link</i></a></h2>\n<p>To use the Angular framework, you should be familiar with the following:</p>\n<ul>\n<li><a href=\"https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript\">JavaScript</a></li>\n<li><a href=\"https://developer.mozilla.org/docs/Learn/HTML/Introduction_to_HTML\">HTML</a></li>\n<li><a href=\"https://developer.mozilla.org/docs/Learn/CSS/First_steps\">CSS</a></li>\n</ul>\n<p>Knowledge of <a href=\"https://www.typescriptlang.org/\">TypeScript</a> is helpful, but not required.</p>\n<p>To install Angular on your local system, you need the following:</p>\n<a id=\"nodejs\"></a>\n<ul>\n<li>\n<p><strong>Node.js</strong></p>\n<p>Angular requires a <a href=\"https://nodejs.org/about/releases\">current, active LTS, or maintenance LTS</a> version of Node.js.</p>\n<div class=\"alert is-helpful\">\n<p>For information about specific version requirements, see the <code>engines</code> key in the <a href=\"https://unpkg.com/@angular/cli/package.json\">package.json</a> file.</p>\n</div>\n<p>For more information on installing Node.js, see <a href=\"https://nodejs.org\" title=\"Nodejs.org\">nodejs.org</a>.\nIf you are unsure what version of Node.js runs on your system, run <code>node -v</code> in a terminal window.</p>\n</li>\n</ul>\n<a id=\"npm\"></a>\n<ul>\n<li>\n<p><strong>npm package manager</strong></p>\n<p>Angular, the Angular CLI, and Angular applications depend on <a href=\"https://docs.npmjs.com/getting-started/what-is-npm\">npm packages</a> for many features and functions.\nTo download and install npm packages, you need an npm package manager.\nThis guide uses the <a href=\"https://docs.npmjs.com/cli/install\">npm client</a> command line interface, which is installed with <code>Node.js</code> by default.\nTo check that you have the npm client installed, run <code>npm -v</code> in a terminal window.</p>\n</li>\n</ul>\n<a id=\"install-cli\"></a>\n<h2 id=\"install-the-angular-cli\">Install the Angular CLI<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/setup-local#install-the-angular-cli\"><i class=\"material-icons\">link</i></a></h2>\n<p>You use the Angular CLI to create projects, generate application and library code, and perform a variety of ongoing development tasks such as testing, bundling, and deployment.
|
||
|
}
|