Using WebStorm with Parse.com

删除回忆录丶 提交于 2019-12-12 16:21:37

问题


I'm completely new to web development including WebStorm, but I do know game development, and through that I've used Parse.com a number of times with iOS games. I know Parse has a JS SDK, but how would I use that with WebStorm? The whole web server is a bit unclear to me, does the web server with WebStorm automatically kick in for anything you publish? Or can you turn it off? Do I have to turn it off to work online with the Parse SDK?


回答1:


If you're on a mac, below steps should work:

  1. WebStormPreferencesJavaScriptLibrariesAdd

  2. Press on the + button and add the Parse JavaScript SDK.

  3. You should now see the Parse SDK listed in the libraries.

Now to run the application locally:

  1. Run npm install parse to install Node's Parse module.
  2. Include var Parse = require('parse').Parse; in your main.js
  3. RunEdit Configurations and make sure that Node interpreter is set to /usr/local/bin/node.
  4. Now use RunRun 'main.js' to run your application.



回答2:


you need to download the javascript SDK (parse-1.2.17.js) and configure it as a javascript library in WebStorm (Settings/javaScript/Libraries, Add...)

You don't have to use the built-in server if you don't need it. Just configure your own web server is settings/deployment, like it's shown in http://wiki.jetbrains.net/intellij/Remote_JavaScript_debugging_with_WebStorm_and_PHPStorm#Configuring_access_to_the_Web_server



来源:https://stackoverflow.com/questions/22283013/using-webstorm-with-parse-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!