Project: GraphScope (App Definition and Development / Database)
File: dev_guide.md

Users can develop C++ stored procedures and Cypher stored procedures based on `GraphScope Interactive`. Interactive also provides an Admin Service for managing graph data and stored procedures at runtime, and it can also retrieve the running status of the service. ```{toctree} arguments caption:GraphScope Interactive Development maxdepth: 2 development/cypher_procedure development/cpp_procedure development/restful_api development/java/java_sdk development/python/python_sdk ```est. We provided a docker image `graphscope-dev` with all tools and dependencies included. Additionally, the allows to quickly setup a develop environment within Visual Studio Code. By using dev containers, developers can ensure that their development environment is consistent across different machines and operating systems, making it easier to collaborate with others and maintain a stable development environment. To use the dev containers for GraphScope development, you can follow these steps: Install Docker on your machine if you haven't already. Or install on the remote machine if you prefer to develop remotely. Clone the GraphScope repository. Open Visual Studio Code and navigate to the GraphScope repository. If you have the Remote Development extension installed, you can click on the green icon in the bottom left corner of the window and select "Remote-Containers: Reopen in Container". If you don't have the extension installed, you can install it from the Visual Studio Code marketplace. If you can't see the `Reopen in Container` prompt, you could hit `Command + Shift + P` (macOS) or `Ctrl + Shift + P` (Windows, Linux) and type `Reopen in Container`. Once the container is built, you can open a terminal within Visual Studio Code. You could customize the `devcontainer.json` to suit your own needs. Once you have made your changes, you could rebuild the container with your customizations. To install all dependencies on your local, use the GraphScope command-line utility with the subcommand `install-deps` like this ```bash python3 gsctl.py install-deps dev ``` You could download the `gs` directly or clone the to local, the `gs` is located in the root directory of GraphScope. With `gs` command-line utility, you can build all targets for GraphScope with a single command. ```bash python3 gsctl.py make all ``` This would build all targets sequentially, here we You may found the built artifacts in several places according to each components. analytical engine: `analytical_engine/build` interactive engine: `interactive_engine/assembly/target` learning engine: `learning_engine/graph-learn/graphlearn/cmake-build` And you could install them to one place by ```bash python3 gsctl.py make install [--prefix=/opt/graphscope] ``` By default it would install all artifacts to `/opt/graphscope`, and you could specify another location by assigning the value of `--prefix`. GraphScope is composed of several components, and you can build each of them separately. If you only changed some codes in one component or intend to use GraphScope in a disaggregated manner, you can build the affected components alone. You may find the guides for building and testing each engine as below. The gscoordinator package is responsible for launching engines, circulating and propagating messages and errors, and scheduling the workload operations. This will install coordinator package, thus make `import gscoordinator` work ````{tip} The package would be installed in , which means any changed you made in local directory will take effect. ```` ```shell python3 gsctl.py make coordinator ``` The `graphscope` package is the entrypoint for playing with GraphScope. This will install the graphscope-client package, thus make `import graphscope` work. ````{tip} This package would also be installed in ```` ```shell python3 gsctl.py make client ```