-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathgetting-started.html
More file actions
54 lines (43 loc) · 2.14 KB
/
getting-started.html
File metadata and controls
54 lines (43 loc) · 2.14 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
---
layout: default
title: Getting started
slug: getting-started
lead: "A quick walkthrough to install and start using CleverStack"
---
<!-- Install CleverStack
================================================== -->
<div class="bs-docs-section">
<div class="page-header">
<h1 id="install-cleverstack">Install CleverStack</h1>
</div>
<p class="lead">Setup is made easy using our CleverStack Command Line Interface (CLI).</p>
{% highlight bash %}$ npm install -g cleverstack-cli{% endhighlight %}
<p><strong>Important:</strong> Linux or Mac users may need to run this command using "sudo"</p>
{% highlight bash %}$ sudo npm install -g cleverstack-cli{% endhighlight %}
</div>
<!-- Create a new Project
================================================== -->
<div class="bs-docs-section" style="padding-top: 0px;">
<div class="page-header">
<h1 id="create-a-new-project">Create a new project</h1>
</div>
<p class="lead">To create a new project using the CleverStack CLI.</p>
{% highlight bash %}$ clever init my-app{% endhighlight %}
{% highlight bash %}$ cd my-app{% endhighlight %}
{% highlight bash %}$ clever install clever-orm clever-auth clever-users clever-accounts clever-roles{% endhighlight %}
Replace clever-orm with clever-odm if you are using a NoSQL database.
<p><strong>Note:</strong> These commands may take awhile depending on your internet connection and computer specifications.</p>
</div>
<!-- Start serving
================================================== -->
<div class="bs-docs-section" style="padding-top: 0px;">
<div class="page-header">
<h1 id="start-serving">Start serving</h1>
</div>
<p class="lead">To start your development servers using the CleverStack CLI.</p>
{% highlight bash %}$ cd my-app{% endhighlight %}
{% highlight bash %}$ clever serve{% endhighlight %}
<p>You are now <strong>serving</strong> http requests, open your web browser:</p>
{% highlight bash %}http://localhost:9000{% endhighlight %}
<p>From here we recommend visiting our <a href="/documentation">Documentation</a></p>
</div>