在Parse.com中使用WebStorm [英] Using WebStorm with Parse.com

查看:128
本文介绍了在Parse.com中使用WebStorm的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对包括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:

  1. 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:

  1. 运行npm install parse以安装Node的Parse模块.
  2. 在您的main.js
  3. 中包括var Parse = require('parse').Parse;
  4. 运行编辑配置,并确保将节点解释器设置为/usr/local/bin/node.
  5. 现在使用运行运行'main.js'来运行您的应用程序.
  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.

这篇关于在Parse.com中使用WebStorm的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆