## **Note: This documentation is now self-hosted! Documentation for the latest release can be found [here](https://editor.netsblox.org/docs/).** This presents a walkthrough creating a simple service in NetsBlox! This assumes you are using OSX or linux. ## Create the service First, set up a [local development environment](https://github.com/NetsBlox/NetsBlox#installation). Creating the server support for a simple service can be done as follows (assuming \*nix shell starting at the project root): ```bash cd src/server/services/procedures mkdir hello-world touch hello-world/hello-world.js ``` Next, open `hello-world/hello-world.js` and add the following code: ```javascript const HelloService = {}; HelloService.hello = function() { return 'world'; }; module.exports = HelloService; ``` Finally, start your NetsBlox server with `DEBUG=netsblox:* npm start`. Continue to "Client support" to test the RPC in the browser! ## Use it from the browser! Open a browser and navigate to your NetsBlox server address (default is `http://localhost:8080`). Switch to the `Network` tab and create a `callRPC` block. Click on the first dropdown menu and you should see `HelloWorld` as one of the options. Next, select the second menu and you should receive a list of all valid actions for the rpc, in our case just `hello`. After selecting these, click on the block and you should see a dialog responding with "world"!. Congrats, you have made your first custom service in NetsBlox! ## Next Steps Now that you have created your own minimal service, check out the [best practices](./Best-Practices-for-NetsBlox-Services.md) to make it a much more feature-rich and robust service!