Skip to content

Commit f8087c3

Browse files
authored
Update README.md
1 parent 89dd787 commit f8087c3

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

README.md

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,34 @@ What you dont know you think its hard but when you start to test and working on,
77
- First example implenment using JSON at `json.js` file,
88
- And next same example implenment using Protobuf inside `protobuf.js` file.
99

10+
## Build proto scheme
11+
12+
```bash
13+
$ protoc --js_out=import_style=commonjs,binary:. employees.proto
14+
```
15+
1016
## Download `protoc`
1117

1218
You need to install `protoc` program on your system, you can download it from https://github.com/protocolbuffers/protobuf/releases depends on your Operation system. whatever your system is Liunx, Windows or OSX.
1319

20+
Next you can run `bin/protoc` by typing its full path.
21+
22+
For example:
23+
```bash
24+
$ /to-the-path/bin/protoc --js_out=import_style=commonjs,binary:. /your-source-path/employees.proto
25+
```
26+
27+
### Setup protoc globally on your system
28+
1429
If you want to install/setup it globally you have to mv `bin` and `include` directory to your system directory.
1530

1631
You need to copy these directory to the system **dir**:
1732
- `bin` -> `/usr/bin/`
1833
- `include` -> `/usr/include/`
1934

2035
Maybe, A command to help you:
21-
```
22-
$ cp -a * /usr/
23-
```
24-
25-
## Build proto scheme
2636

27-
```
28-
$ protoc --js_out=import_style=commonjs,binary:. employees.proto
37+
```bash
38+
$ cp -a * /usr/
2939
```
3040

0 commit comments

Comments
 (0)