Skip to content

Commit 549ad13

Browse files
committed
Updated README with build steps
1 parent e5fa490 commit 549ad13

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@ This **C++ SDK** is built from scratch as a **prototype** for interacting with A
2020
![Appwrite](https://github.com/appwrite/appwrite/raw/main/public/images/github.png)
2121

2222

23+
## Installation
24+
25+
### Build From Source Code
26+
27+
Clone the repository and run the following commands
28+
```bash
29+
mkdir build
30+
cd build
31+
cmake ..
32+
make
33+
```
34+
35+
Install the SDK.
36+
```bash
37+
sudo make install
38+
```
39+
2340
## Getting Started
2441

2542
### Make Your First Request
@@ -74,6 +91,16 @@ The Appwrite C++ SDK raises `AppwriteException` object with `message`, `code` an
7491
}
7592
```
7693
94+
### Compilation & Execution
95+
96+
```bash
97+
# Compile
98+
g++ -o <output-file-name> <your-file-name>.cpp -I/usr/local/include/AppwriteSDK -L/usr/local/lib -lAppwriteSDK -lcurl
99+
100+
# Execute
101+
./output-file-name
102+
```
103+
77104
For a more detailed view of the implementations, please check out the example directory. [Example](/examples/)
78105

79106
### Learn more

0 commit comments

Comments
 (0)