This commit is contained in:
Alexander Zhukov 2017-02-28 14:37:20 +03:00
parent be84925112
commit 00a47bf22f
9 changed files with 93 additions and 94 deletions

View file

@ -52,36 +52,36 @@
<h1>Installation Guidelines</h1>
<div class="subHeader"></div><h2 id="prerequisites">Prerequisites</h2>
<p>Although ng2-admin can be run without any development experience, it would be much easier if you already have some.
The following instructions allow you to run a local copy on your&nbsp;machine.</p>
<h2 id="install-tools">Install&nbsp;tools</h2>
<p>If you dont have any of these tools installed already, you will need&nbsp;to:</p>
The following instructions allow you to run a local copy on your<span class="widont">&nbsp;</span>machine.</p>
<h2 id="install-tools">Install tools</h2>
<p>If you dont have any of these tools installed already, you will need<span class="widont">&nbsp;</span>to:</p>
<ul>
<li>Download and install <a href="https://git-scm.com/">git</a></li>
<li>Download and install nodejs <a href="https://nodejs.org">https://nodejs.org</a></li>
</ul>
<p><strong>Note</strong>: Make sure you have Node version &gt;= 4.0 and <span class="caps">NPM</span> &gt;=&nbsp;3</p>
<h2 id="clone-repository-and-install-dependencies">Clone repository and install&nbsp;dependencies</h2>
<p>You will need to clone the source code of ng2-admin GitHub&nbsp;repository:</p>
<p><strong>Note</strong>: Make sure you have Node version &gt;= 4.0 and <span class="caps">NPM</span> &gt;=<span class="widont">&nbsp;</span>3</p>
<h2 id="clone-repository-and-install-dependencies">Clone repository and install<span class="widont">&nbsp;</span>dependencies</h2>
<p>You will need to clone the source code of ng2-admin GitHub<span class="widont">&nbsp;</span>repository:</p>
<pre><code class="lang-bash">git <span class="built_in">clone</span> https://github.com/akveo/ng2-admin.git
</code></pre>
<p>After the repository is cloned, go inside of the repository directory and install&nbsp;dependencies:</p>
<p>After the repository is cloned, go inside of the repository directory and install<span class="widont">&nbsp;</span>dependencies:</p>
<pre><code class="lang-bash"><span class="built_in">cd</span> ng2-admin
npm install
</code></pre>
<p>This will setup a working copy of ng2-admin on your local&nbsp;machine.</p>
<h2 id="running-local-copy">Running local&nbsp;copy</h2>
<p>To run a local copy in development mode,&nbsp;execute:</p>
<p>This will setup a working copy of ng2-admin on your local<span class="widont">&nbsp;</span>machine.</p>
<h2 id="running-local-copy">Running local copy</h2>
<p>To run a local copy in development mode,<span class="widont">&nbsp;</span>execute:</p>
<pre><code class="lang-bash">npm start
</code></pre>
<p>Go to <a href="http://0.0.0.0:3000">http://0.0.0.0:3000</a> or <a href="http://localhost:3000">http://localhost:3000</a> in your&nbsp;browser.</p>
<p>To run the local copy in production mode and build the sources,&nbsp;execute:</p>
<p>Go to <a href="http://0.0.0.0:3000">http://0.0.0.0:3000</a> or <a href="http://localhost:3000">http://localhost:3000</a> in your<span class="widont">&nbsp;</span>browser.</p>
<p>To run the local copy in production mode and build the sources,<span class="widont">&nbsp;</span>execute:</p>
<pre><code class="lang-bash">npm run prebuild:prod &amp;&amp; npm run build:prod &amp;&amp; npm run server:prod
</code></pre>
<p>This will clear up your dist folder (where release files are located), generate a release build and start the
built-in server.
Now you can copy the sources from the <code>dist</code> folder and use it with any backend framework or
simply put it under a web&nbsp;server.</p>
<p>For addition information about creating a build, please check out <a href="https://github.com/AngularClass/angular2-webpack-starter">Angular2 Webpack Starter&nbsp;documentation</a></p>
simply put it under a web<span class="widont">&nbsp;</span>server.</p>
<p>For addition information about creating a build, please check out <a href="https://github.com/AngularClass/angular2-webpack-starter">Angular2 Webpack Starter<span class="widont">&nbsp;</span>documentation</a></p>
</div>
</section>