-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
97 lines (86 loc) · 18.7 KB
/
index.html
File metadata and controls
97 lines (86 loc) · 18.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Getting Started</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#2B3A42">
<link rel="shortcut icon" href="/assets/favicon.ico">
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400,600|Source+Sans+Pro:200,400,400i,500" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.css" />
<link href="/093c5e94a96399fbbcb5.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/docsearch.js/2/docsearch.min.js"></script>
</head>
<body>
<div id="site" class="site"><div class="interactive" id="components/navigation/navigation.jsx" data-props="{"sections":[{"title":"Get-Started","url":"get-started","pages":[{"title":"Installation","url":"get-started/installation"},{"title":"Running","url":"get-started/running"},{"title":"Project Overview","url":"get-started/overview"}]},{"title":"Guides","url":"guides","pages":[{"title":"asdf","url":"guides/asdf"}]},{"title":"Developing","url":"developing","pages":[{"title":"developing/01_Adding_a_Route","url":"developing/01_Adding_a_Route"}]},{"title":"Deployment","url":"deployment","pages":[{"title":"deployment/gcloud-deployment","url":"deployment/gcloud-deployment"}]},{"title":"Examples","url":"examples","pages":[{"title":"Heroku Deploy","url":"examples/Heroku_Deployment"},{"title":"IIS","url":"examples/IIS"}]},{"title":"Generators","url":"generators","pages":[{"title":"App","url":"generators/app"},{"title":"Route","url":"generators/route"},{"title":"Service","url":"generators/service"},{"title":"Component","url":"generators/component"},{"title":"Controller","url":"generators/controller"},{"title":"Decorator","url":"generators/decorator"},{"title":"Directive","url":"generators/directive"},{"title":"Endpoint","url":"generators/endpoint"},{"title":"Filter","url":"generators/filter"},{"title":"Heroku","url":"generators/heroku"},{"title":"Openshift","url":"generators/openshift"}]},{"title":"Other","url":"/","pages":[]}],"pageUrl":"get-started/"}"><header class="navigation"><div class="container navigation__inner"></div><div class="navigation__bottom"><div class="container navigation__inner"></div></div></header></div><div class="interactive" id="components/sidebar-mobile/sidebar-mobile.jsx" data-props="{"sections":[{"title":"Get-Started","url":"get-started","pages":[{"title":"Installation","url":"get-started/installation"},{"title":"Running","url":"get-started/running"},{"title":"Project Overview","url":"get-started/overview"}]},{"title":"Guides","url":"guides","pages":[{"title":"asdf","url":"guides/asdf"}]},{"title":"Developing","url":"developing","pages":[{"title":"developing/01_Adding_a_Route","url":"developing/01_Adding_a_Route"}]},{"title":"Deployment","url":"deployment","pages":[{"title":"deployment/gcloud-deployment","url":"deployment/gcloud-deployment"}]},{"title":"Examples","url":"examples","pages":[{"title":"Heroku Deploy","url":"examples/Heroku_Deployment"},{"title":"IIS","url":"examples/IIS"}]},{"title":"Generators","url":"generators","pages":[{"title":"App","url":"generators/app"},{"title":"Route","url":"generators/route"},{"title":"Service","url":"generators/service"},{"title":"Component","url":"generators/component"},{"title":"Controller","url":"generators/controller"},{"title":"Decorator","url":"generators/decorator"},{"title":"Directive","url":"generators/directive"},{"title":"Endpoint","url":"generators/endpoint"},{"title":"Filter","url":"generators/filter"},{"title":"Heroku","url":"generators/heroku"},{"title":"Openshift","url":"generators/openshift"}]},{"title":"Other","url":"/","pages":[]}]}"><nav class="sidebar-mobile"><div class="sidebar-mobile__toggle"></div><div class="sidebar-mobile__content"><i class="sidebar-mobile__close icon-cross"></i><div class="sidebar-mobile__section "><a href="/get-started" class="sidebar-mobile__section-header"></a><a href="/get-started/installation" class="sidebar-mobile__page "></a><a href="/get-started/running" class="sidebar-mobile__page "></a><a href="/get-started/overview" class="sidebar-mobile__page "></a></div><div class="sidebar-mobile__section "><a href="/guides" class="sidebar-mobile__section-header"></a><a href="/guides/asdf" class="sidebar-mobile__page "></a></div><div class="sidebar-mobile__section "><a href="/developing" class="sidebar-mobile__section-header"></a><a href="/developing/01_Adding_a_Route" class="sidebar-mobile__page "></a></div><div class="sidebar-mobile__section "><a href="/deployment" class="sidebar-mobile__section-header"></a><a href="/deployment/gcloud-deployment" class="sidebar-mobile__page "></a></div><div class="sidebar-mobile__section "><a href="/examples" class="sidebar-mobile__section-header"></a><a href="/examples/Heroku_Deployment" class="sidebar-mobile__page "></a><a href="/examples/IIS" class="sidebar-mobile__page "></a></div><div class="sidebar-mobile__section "><a href="/generators" class="sidebar-mobile__section-header"></a><a href="/generators/app" class="sidebar-mobile__page "></a><a href="/generators/route" class="sidebar-mobile__page "></a><a href="/generators/service" class="sidebar-mobile__page "></a><a href="/generators/component" class="sidebar-mobile__page "></a><a href="/generators/controller" class="sidebar-mobile__page "></a><a href="/generators/decorator" class="sidebar-mobile__page "></a><a href="/generators/directive" class="sidebar-mobile__page "></a><a href="/generators/endpoint" class="sidebar-mobile__page "></a><a href="/generators/filter" class="sidebar-mobile__page "></a><a href="/generators/heroku" class="sidebar-mobile__page "></a><a href="/generators/openshift" class="sidebar-mobile__page "></a></div><div class="sidebar-mobile__section "><a href="//" target="_blank" class="sidebar-mobile__section-header"></a></div></div></nav></div><div class="container page"><aside class="sidecar"><a href="//github.com/angular-fullstack/generator-angular-fullstack" target="_blank" class="sidecar__link sidecar__link--github"><span class="sidecar__label">Fork the Repo</span><i class="sidecar__icon icon-github"></i></a><a class="sidecar__link sidecar__link--gitter js-gitter-toggle-chat-button"><span class="sidecar__label">Find Help</span><i class="sidecar__icon icon-gitter"></i></a><a href="//stackoverflow.com/questions/tagged/generator-angular-fullstack" target="_blank" class="sidecar__link sidecar__link--so"><span class="sidecar__label">Stack Overflow</span><i class="sidecar__icon icon-stack-overflow"></i></a></aside><div class="interactive" id="components/sidebar/sidebar.jsx" data-props="{"sectionName":"get-started","pages":[{"url":"get-started/installation","title":"Installation","anchors":[{"title":"Installation","id":"installation"},{"title":"Git","id":"git"}]},{"url":"get-started/running","title":"Running","anchors":[{"title":"Running Your New App","id":"running-your-new-app"}]},{"url":"get-started/overview","title":"Project Overview","anchors":[{"title":"Project Overview","id":"project-overview"},{"title":"Project Root","id":"project-root"},{"title":"client/","id":"client-"},{"title":"server/","id":"server-"},{"title":"e2e/","id":"e2e-"}]}],"currentPage":"get-started/"}"><nav class="sidebar"><div class="sidebar__inner"><h3 class="sidebar-item__version">Version 4.1.x</h3><div class="sidebar-item sidebar-item--empty "><a href="/get-started" class="sidebar-item__title"></a><i class="sidebar-item__toggle icon-chevron-down"></i><ul class="sidebar-item__anchors"></ul></div><div class="sidebar-item "><a href="/get-started/installation" class="sidebar-item__title"></a><i class="sidebar-item__toggle icon-chevron-down"></i><ul class="sidebar-item__anchors"><li class="sidebar-item__anchor"><a href="/get-started/installation#installation">Installation</a></li><li class="sidebar-item__anchor"><a href="/get-started/installation#git">Git</a></li></ul></div><div class="sidebar-item "><a href="/get-started/running" class="sidebar-item__title"></a><i class="sidebar-item__toggle icon-chevron-down"></i><ul class="sidebar-item__anchors"><li class="sidebar-item__anchor"><a href="/get-started/running#running-your-new-app">Running Your New App</a></li></ul></div><div class="sidebar-item "><a href="/get-started/overview" class="sidebar-item__title"></a><i class="sidebar-item__toggle icon-chevron-down"></i><ul class="sidebar-item__anchors"><li class="sidebar-item__anchor"><a href="/get-started/overview#project-overview">Project Overview</a></li><li class="sidebar-item__anchor"><a href="/get-started/overview#project-root">Project Root</a></li><li class="sidebar-item__anchor"><a href="/get-started/overview#client-">client/</a></li><li class="sidebar-item__anchor"><a href="/get-started/overview#server-">server/</a></li><li class="sidebar-item__anchor"><a href="/get-started/overview#e2e-">e2e/</a></li></ul></div></div></nav></div><section class="page__content"><h1>Getting Started</h1><a class="page__edit" href="https://github.com/angular-fullstack/generator-angular-fullstack/edit/master/docs/content/get-started/index.md">Edit this Page   <i class="icon-edit"></i></a><div><h2 class="header"><a class="anchor" href="#prerequisites" id="prerequisites"></a><span class="text">Prerequisites</span><a class="icon-link" href="#prerequisites"></a></h2>
<h3 class="header"><a class="anchor" href="#npm-modules" id="npm-modules"></a><span class="text">npm modules</span><a class="icon-link" href="#npm-modules"></a></h3>
<p>Make sure you have all the required Node dependencies available:</p>
<pre><code class="lang-bash">npm <span class="token function">install</span> -g yo gulp-cli generator-angular-fullstack
</code></pre>
<h3 class="header"><a class="anchor" href="#mongodb" id="mongodb"></a><span class="text">MongoDB</span><a class="icon-link" href="#mongodb"></a></h3>
<p>If you're using MongoDB (which you probably are), you'll have to install it from <a href="https://www.mongodb.com/download-center#community">here</a>.
You should then run the <code>mongod</code> process, which is in <code><install_path>/MongoDB/Server/<version>/bin/</code>. You'll also want a <code>/data/db</code> folder
somewhere for Mongo to put your database in. It would be wise to make a script to automate this command, and maybe even run this script on
your computer's startup. Example:</p>
<pre><code class="lang-bash"><span class="token shebang important">#!/bin/bash</span>
/var/lib/mongo/server/3.2/bin/mongod --dbpath /data/db
</code></pre>
<h3 class="header"><a class="anchor" href="#node-gyp" id="node-gyp"></a><span class="text">node-gyp</span><a class="icon-link" href="#node-gyp"></a></h3>
<p><code>node-gyp</code> is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. You'll need it for things like <code>uws</code>.</p>
<p>Read through the <a href="https://github.com/nodejs/node-gyp#installation">Installation section of the <code>node-gyp</code> readme</a>. Basically you'll need <a href="https://www.python.org/downloads/">Python 2.7</a>, <code>make</code>, and a C/C++ compiler (like GCC on unix, Xcode on OS X, or Visual Studio tools on Windows). To tell npm to use Python 2.7 (if you also have a different version installed), run <code>npm config set python /path/to/executable/python2.7</code>. Here's a snapshot of the instructions from their readme:</p>
<ul>
<li>On Unix:<ul>
<li><code>python</code> (<code>v2.7</code> recommended, <code>v3.x.x</code> is <strong><em>not</em></strong> supported)</li>
<li><code>make</code></li>
<li>A proper C/C++ compiler toolchain, like <a href="https://gcc.gnu.org">GCC</a></li>
</ul>
</li>
<li>On Mac OS X:<ul>
<li><code>python</code> (<code>v2.7</code> recommended, <code>v3.x.x</code> is <strong><em>not</em></strong> supported) (already installed on Mac OS X)</li>
<li><a href="https://developer.apple.com/xcode/download/">Xcode</a><ul>
<li>You also need to install the <code>Command Line Tools</code> via Xcode. You can find this under the menu <code>Xcode -> Preferences -> Downloads</code></li>
<li>This step will install <code>gcc</code> and the related toolchain containing <code>make</code></li>
</ul>
</li>
</ul>
</li>
<li><p>On Windows:</p>
<ul>
<li>Option 1: Install all the required tools and configurations using Microsoft's <a href="https://github.com/felixrieseberg/windows-build-tools">windows-build-tools</a> using <code>npm install --global --production windows-build-tools</code> from an elevated PowerShell or CMD.exe (run as Administrator).</li>
<li><p>Option 2: Install tools and configuration manually:</p>
<ul>
<li><p>Visual C++ Build Environment:</p>
<ul>
<li><p>Option 1: Install <a href="http://landinghub.visualstudio.com/visual-cpp-build-tools">Visual C++ Build Tools</a> using the <strong>Default Install</strong> option.</p>
</li>
<li><p>Option 2: Install <a href="https://www.visualstudio.com/products/visual-studio-community-vs">Visual Studio 2015</a> (or modify an existing installation) and select <em>Common Tools for Visual C++</em> during setup. This also works with the free Community and Express for Desktop editions.</p>
</li>
</ul>
<blockquote>
<p>:bulb: [Windows Vista / 7 only] requires <a href="http://www.microsoft.com/en-us/download/details.aspx?id=40773">.NET Framework 4.5.1</a></p>
</blockquote>
</li>
<li><p>Install <a href="https://www.python.org/downloads/">Python 2.7</a> (<code>v3.x.x</code> is not supported), and run <code>npm config set python python2.7</code> (or see below for further instructions on specifying the proper Python version and path.)</p>
</li>
<li>Launch cmd, <code>npm config set msvs_version 2015</code></li>
</ul>
</li>
</ul>
<p>If the above steps didn't work for you, please visit <a href="https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules">Microsoft's Node.js Guidelines for Windows</a> for additional tips.</p>
</li>
</ul>
<h3 class="header"><a class="anchor" href="#create-a-new-folder-for-your-project" id="create-a-new-folder-for-your-project"></a><span class="text">Create a new folder for your project</span><a class="icon-link" href="#create-a-new-folder-for-your-project"></a></h3>
<p>Make a new directory, and <code>cd</code> into it:</p>
<pre><code class="lang-bash"><span class="token function">mkdir</span> myapp <span class="token operator">&&</span> <span class="token function">cd</span> <span class="token variable">$_</span>
</code></pre>
</div><hr style="display:none;"><h3 style="display:none;">Contributors</h3><noscript></noscript></section></div><div class="footer"><div class="container footer__inner"><section class="footer__left"><a href="/get-started" class="footer__link">Get Started</a><a href="https://github.com/angular-fullstack" target="_blank" class="footer__link">Organization</a><a href="https://github.com/angular-fullstack/generator-angular-fullstack/blob/master/contributing.md" target="_blank" class="footer__link">Contribute</a></section><section class="footer__middle"><a href="/" class="footer__icon"><img src="/44c8aeaa24cb28d0a5c6a45de449fd7d.svg"></a></section><section class="footer__right"><a href="https://gitter.im/angular-fullstack/generator-angular-fullstack" target="_blank" class="footer__link">Support</a><a href="https://github.com/angular-fullstack/generator-angular-fullstack/releases" target="_blank" class="footer__link">Changelog</a></section></div></div><script>(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-46921629-2', 'auto');ga('send', 'pageview');</script></div>
<script src="/7134a3432b416f3224feaf7e04665de0.js"></script>
<script>
((window.gitter = {}).chat = {}).options = {
room: 'angular-fullstack/generator-angular-fullstack',
activationElement: false
};
</script>
<script src="https://sidecar.gitter.im/dist/sidecar.v1.js" async defer></script>
</body>
</html>