1

The documantion mention that there is a way to develop entire project localy and then upload it to back& platform for production. how can it be done?

There is sample code somewhere ?

thanks

pery mimon
  • 7,713
  • 6
  • 52
  • 57

2 Answers2

0

The server side in Back& can be built with cloud JavaScript or with node.js. Using Backand CLI and node.js you can develop any project in node.js and upload it. The steps are simple:

  1. Create new action with "Server side node.js code"
  2. Run the action.init command (copy paste from the action page)
  3. Use the backand shell project to build the node.js project
  4. Run action.deploy command to upload and run the code on the server
Itay
  • 734
  • 4
  • 5
  • 1. "server side node.js code" is the Back& site ?? 2. "copy paste from the action page" – pery mimon Jan 17 '17 at 12:24
  • @perymimon yes in Back& site, under Actions tab, create new Action (then select server side node.js type) – Itay Jan 17 '17 at 12:29
  • ok that clear but. 2.`Run the action.init` where, on the command line of the client root project ? "copy paste from the action page" which page. on the back& site GUI ? what to copy from there ? the JS code or there is some CLI command there ? 3 & 4,can you reference inside the aswer to the `Github` project or provide some sample code ? – pery mimon Jan 17 '17 at 12:39
  • I do the steps instraction . but it take me until the point of `test CRUD` but I'm not sure that test give me the global object that exist in backand platform like 'socket, files, request, etc.. ` – pery mimon Jan 20 '17 at 17:34
0

for debug node.js localy :

first make sure you have action defind in the back& site under the section objects/[objectName]/action

example:

project name: MyApp with object call: Users with the action files (for upload a images file)
so

In local terminal
1. go to project's root folder.
2. type backand login and follow the instraction (email & password).
3. type backand action init and follow the instration.

project name : MyApp,  
object name : Users,  
action name : files   

to be continue...

pery mimon
  • 7,713
  • 6
  • 52
  • 57