在Parse.com中使用WebStorm [英] Using WebStorm with Parse.com
问题描述
我对包括WebStorm在内的Web开发完全陌生,但是我确实了解游戏开发,因此我在iOS游戏中多次使用Parse.com.我知道Parse有一个JS SDK,但是如何将其与WebStorm一起使用?整个Web服务器对我来说还不太清楚,带有WebStorm的Web服务器会自动启动您发布的任何内容吗?还是可以将其关闭?我必须关闭它才能在线使用Parse SDK吗?
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?
推荐答案
如果您使用的是Mac,请执行以下步骤:
If you're on a mac, below steps should work:
-
WebStorm →首选项→ JavaScript →库→添加
按 + 按钮并添加Parse JavaScript SDK.
Press on the + button and add the Parse JavaScript SDK.
您现在应该看到库中列出的Parse SDK.
You should now see the Parse SDK listed in the libraries.
现在可以在本地运行该应用程序:
Now to run the application locally:
- 运行
npm install parse
以安装Node的Parse模块. - 在您的
main.js
中包括 - 运行→编辑配置,并确保将节点解释器设置为
/usr/local/bin/node
. - 现在使用运行→运行'main.js'来运行您的应用程序.
var Parse = require('parse').Parse;
- Run
npm install parse
to install Node's Parse module. - Include
var Parse = require('parse').Parse;
in yourmain.js
- Run → Edit Configurations and make sure that Node interpreter is set to
/usr/local/bin/node
. - Now use Run → Run 'main.js' to run your application.
这篇关于在Parse.com中使用WebStorm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!