@back4app/back4app
back{4}app backend-as-a-service implementation
Last updated a year ago by back4app .
Unlicense · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @back4app/back4app 
SYNC missed versions from official npm registry.

back4app

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

lint

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

It uses gulp-jshint and gulp-jscs.

mocha

This task does unit tests using mocha.

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 mocha
  • Create tests to any new major interactions, or changed ones.

  • Follow the code comment standards for documentations.

Current Tags

  • 1.3.0                                ...           latest (a year ago)

13 Versions

  • 1.3.0                                ...           a year ago
  • 1.0.13                                ...           3 years ago
  • 1.0.12                                ...           3 years ago
  • 1.0.11                                ...           3 years ago
  • 1.0.10                                ...           3 years ago
  • 1.0.9                                ...           3 years ago
  • 1.0.8                                ...           3 years ago
  • 1.0.7                                ...           3 years ago
  • 1.0.5                                ...           4 years ago
  • 1.0.4                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 13
Last Day 0
Last Week 13
Last Month 0
Dependencies (59)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |