You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/getting-started/installation.md
+57-3Lines changed: 57 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,18 +13,70 @@ Before installing QueryLeaf, make sure you have:
13
13
14
14
## Installing QueryLeaf
15
15
16
-
You can install QueryLeaf using npm or yarn:
16
+
QueryLeaf is divided into three separate packages to minimize dependencies:
17
+
18
+
### Core Library
19
+
20
+
Install the core library as a dependency in your project:
21
+
22
+
=== "npm"
23
+
```bash
24
+
npm install @queryleaf/lib
25
+
```
26
+
27
+
=== "yarn"
28
+
```bash
29
+
yarn add @queryleaf/lib
30
+
```
31
+
32
+
### Command Line Interface
33
+
34
+
To use the command-line interface, install the CLI package:
17
35
18
36
=== "npm"
19
37
```bash
20
-
npm install queryleaf
38
+
# As a project dependency
39
+
npm install @queryleaf/cli
40
+
41
+
# Or globally
42
+
npm install -g @queryleaf/cli
21
43
```
22
44
23
45
=== "yarn"
24
46
```bash
25
-
yarn add queryleaf
47
+
# As a project dependency
48
+
yarn add @queryleaf/cli
49
+
50
+
# Or globally
51
+
yarn global add @queryleaf/cli
26
52
```
27
53
54
+
After installation, you'll have access to the `queryleaf` command.
55
+
56
+
### Web Server
57
+
58
+
To use the web server for a MongoDB SQL proxy, install the server package:
59
+
60
+
=== "npm"
61
+
```bash
62
+
# As a project dependency
63
+
npm install @queryleaf/server
64
+
65
+
# Or globally
66
+
npm install -g @queryleaf/server
67
+
```
68
+
69
+
=== "yarn"
70
+
```bash
71
+
# As a project dependency
72
+
yarn add @queryleaf/server
73
+
74
+
# Or globally
75
+
yarn global add @queryleaf/server
76
+
```
77
+
78
+
After installation, you'll have access to the `queryleaf-server` command.
79
+
28
80
## TypeScript Support
29
81
30
82
QueryLeaf is written in TypeScript and includes type definitions out of the box. You don't need to install any additional packages for TypeScript support.
@@ -114,4 +166,6 @@ Now that you have installed QueryLeaf, you can proceed to:
114
166
115
167
-[Quick Start Guide](quickstart.md): Learn the basics of using QueryLeaf
116
168
-[Core Concepts](../usage/core-concepts.md): Understand the architecture and principles
169
+
-[CLI Documentation](../usage/cli.md): Learn how to use the command-line interface
170
+
-[Server Documentation](../usage/server.md): Learn how to run and use the web server
117
171
-[Examples](../usage/examples.md): See practical examples of using QueryLeaf
0 commit comments