Manual Setup¶
Use the instructions below to configure a new project for developing custom server-side code in JavaScript with Backendless CodeRunner™:
- Create a new directory which will contain your project.
- Create a file named
package.json
with the following contents (make sure to substituteAPPNAME
with the name of your client project, the final value cannot have any spaces):
{
"name": "APPNAME-servercode",
"version": "1.0.0",
"scripts": {
"debug": "coderunner debug",
"deploy": "coderunner deploy"
},
"devDependencies": {
"backendless-coderunner": "^4.3.0"
}
}
coderunner.json
with the following contents:
{
"backendless": {
"apiServer": "https://api.backendless.com",
"msgBroker": {
"host": "cl.backendless.com",
"port": 6379
}
},
"app": {
"id": "APP-ID",
"apiKey": "CODE_RUNNER_API_KEY",
"exclude": [
"package.json",
"coderunner.json",
"README.md",
"servercode.iml",
"servercode.ipr",
"servercode.iws"
]
}
}
APP-ID
- application ID for your Backendless backend. You can obtain this value in Backendless console on the Manage > App Settings screen.CODE_RUNNER_API_KEY
- Code Runner API key from the Manage > App Settings screen in Backendless console.1. Install Backendless CodeRunner dependency by running the following command from the root of your project directory:
npm install