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

@back4app/back4app-entity-mongodb

v1.0.8

Published

back{4}app entity persistence mongodb plugin

Downloads

30

Readme

back4app entity mongodb

Build Status

Table of contents

  • [Getting Started] (#getting-started)
  • [Dependencies] (#dependencies)
  • [Gulp] (#gulp)
  • [Building Files] (#building-files)
  • [Best Practices] (#best-practices)

Getting Started

First of all, you need to install Node.js. To help you to manage different version of Node.js in your system is recommended that you use nvm. nvm is a Node.js version manager. Using it you will be able to have how many Node.js versions you want. To install it run this command:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash

or

wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.25.4/install.sh | bash

To enable the nvm, close and reopen the terminal. Now you can install the most recent stable version of Node.js. To do this just run this command:

nvm install stable

For further information about nvm check its repository.

Dependencies

First ensure that you have installed node.js ands mongodb. Then

$ npm install

####Possible errors

May be caused by the default node version in your machine. To set the default node in your shell, run this command:

nvm alias default 4.0.0

Then verify the change persists by closing the shell window, reopening it and running:

node --version

Gulp

Gulp is included on Development Dependencies. Running the previous command might install it. To install gulp you should run this command:

npm install gulp --global

Gulp Tasks

injectindex

During development, the results can be visualized on a static web page. In order to keep it updated, this task injects the .js and .css files on index.html

It uses the gulp-inject package to and reads the gulp.config.json file.

lint

This task is used to maintain the established standards on code style and avoid syntax errors.

It uses gulp-jshint and gulp-jscs.

test

This task does unit and interface tests. Those are two subtasks, that can be called separately.

It uses karma and selenium, through gulp-mocha and browser-sync.

dist

To generate the production files, this task concatenates and minifies the development files. It depends on lint task, and it runs unit tests on the minified files.

It uses gulp-concat and gulp-uglify.

Building files

Contributing with the project, you can build the production files by running the Gulp Task dist. It will create the "dist" directory. All dependencies and minified files will be injected on the production web page.

To run this task, use the following command:

gulp dist

Best Practices

  • You should follow the configuration files, using it on your IDE. They're .editorconfig, .jscsrc and .jshintrc.

  • Try to always remember to run lint and tests:

gulp lint
gulp test
  • Create tests to any new major interactions, or changed ones.

  • Follow the code comment standards for documentations.