Set up Root and your dev machine
You can develop for the Root Platform on Windows or macOS. You'll need to do a few Root setup tasks before starting to write code. Skip any steps that you've completed previously.
1. Install software
Node
You'll need Node version 22 or greater to run the local test host and for its package manager: download link. You can check your currently installed node version by running node --version from a terminal or command prompt.
IDE
You'll write your Root App code using an editor of your choice, two popular options are VS Code and WebStorm:
- Visual Studio Code: download link.
- JetBrains WebStorm: download link.
Root
Visit the Root download page and install the Root desktop client on your development machine.
2. Sign up
You'll use a single Root account both as a Root member and a Root developer.
Create a Root account
Here are the steps to create a Root account:
- Start the Root application.
- Select the 'Register' option at the bottom of the login screen.
- Add your information to the registration page.
- Select ‘Register’ to complete the registration process. You’ll be logged in and ready to go.
Join the Root developer program
The Root developer program lets you generate credentials for testing and publish your work to the store.
Open the Root Developer Portal and login with your Root account. That's it, you're in!
3. Create a project
A project in the Root Developer Portal is a container to host the identity, versions, code, and state of your App. You'll need one project for each of your Apps.
- In a web browser, navigate to the Root Developer Portal.
- Log in with your Root credentials.
- Select the My apps tab.
- Select the New app button.
- Enter a name for your App.
- Agree to the terms.
- Select Create.
4. Generate a DEV_TOKEN and a community
A DEV_TOKEN is a Root-generated token that encapsulates your identity, your authorization to access the Root infrastructure, and a community ID. You get a DEV_TOKEN from the Root Developer Portal.
- In a web browser, navigate to the Root Developer Portal.
- Log in with your Root credentials.
- Select the My apps tab.
- Select one of your Apps from the list.
- Select the Settings tab.
- Select the Generate new dev token button.
- Select Generate.
- Copy the generated
DEV_TOKEN.
Don't share your DEV_TOKEN; treat it like a password.
Your code will always run in the context of a community. Root automatically creates a test community for your when you generate your first DEV_TOKEN for a project. The community will be named after your project name with the suffix -test added. If you delete the community, Root will create a new one for you the next time you generate a DEV_TOKEN.