npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

bmob-cloud-tool

v0.5.0

Published

Bmob云端代码本地调试工具 =========================

Downloads

2

Readme

Bmob云端代码本地调试工具

提供这个开发工具是为了方便大家对云端代码进行调试,可以结合一些IDE和Node编译器,直接先在本地电脑上将云端代码编辑好再添加到云端,以便更好的开发。

准备工作

  1. 根据自己的操作系统的情况,下载并安装NodeJs编译器(http://www.nodejs.org/download/)。

  2. Clone这个Repo的到本地电脑。

编写云端代码

  1. 进入Repo的cloud文件夹,编写相应的云端代码(可参考我们提供的demo)。

  2. 根据自己的APP信息,修改AppConfig.jsonapp_keyrest_key信息。

命令行调试

  1. 打开命令提示符工具,进入到Repo对应的test目录下。

  2. 执行命令node test.js,即可看到调试信息。如下图所示:

WebStorm IDE调试(推荐)

你还可以借助一些IDE工具进行云端代码的编辑和调试,下面以WebStorm(下载地址:http://www.jetbrains.com/webstorm/ )为例进行阐述。

  1. 导入Repo工程。

  1. 修改NodeJs编译器的路径信息。过程如下:执行菜单Run->Edit Configurations,并修改NodeJs的安装路径,如下图所示

  1. 打开test/test.js文件,右击鼠标,在弹出菜单中选择“Run 'nodejs'”,如果配置无误的话就可以看到调试结果了,如下图所示:

本地和云端代码的同步

本工具提供了两种方式进行云端代码的调试:本地调试和服务端调试,分别对应于test.js脚本里的local()server()方法。它们的区别主要在于云端代码的运行端,服务端调试会将本地代码同步到Bmob云端中去执行,而本地调试只是在本地执行。一般而言,大家可以先用本地调试的方法先把代码调好,然后再调用服务端调试的方法,一键同步本地代码到Bmob云端执行。

Bmob官方信息

官方网址:http://www.bmob.cn

问答社区:http://wenda.bmob.cn

技术邮箱:[email protected]