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: content/docs/getting-started/quickstart.md
+9-22Lines changed: 9 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,23 +29,13 @@ What you build:
29
29
go install github.com/go-sphere/sphere-cli@latest
30
30
```
31
31
32
-
**Install Protoc Plugins:**
33
-
```bash
34
-
go install github.com/go-sphere/protoc-gen-sphere@latest
35
-
go install github.com/go-sphere/protoc-gen-route@latest
36
-
go install github.com/go-sphere/protoc-gen-sphere-binding@latest
37
-
go install github.com/go-sphere/protoc-gen-sphere-errors@latest
38
-
```
39
-
40
32
**Verify Installation:**
41
33
```bash
42
34
sphere-cli --version || sphere-cli -h
43
-
protoc-gen-sphere --version
44
-
protoc-gen-route --version
45
-
protoc-gen-sphere-binding --version
46
-
protoc-gen-sphere-errors --version
47
35
```
48
36
37
+
> **Note**: You don't need to manually install protoc plugins. After creating a project, run `make init` to automatically install all required dependencies including protoc plugins.
This generates a new project with a clean structure based on [sphere-layout](https://github.com/go-sphere/sphere-layout).
50
+
This generates a new project with a clean structure based on [sphere-layout](https://github.com/go-sphere/sphere-layout) and automatically installs all required protoc plugins and dependencies.
61
51
62
52
### 2. Define Database Schema (Ent)
63
53
64
-
Create your database entities in `/internal/pkg/database/ent/schema`. For example, create `internal/pkg/database/ent/schema/user.go`:
54
+
Create your database entities in `internal/pkg/database/schema/`. For example, create `internal/pkg/database/schema/user.go`:
0 commit comments