Giter VIP home page Giter VIP logo

couchdb-login-jquery's Introduction

CouchApp: Standalone CouchDB Application Development Made Simple

https://img.shields.io/travis/couchapp/couchapp/master.png?style=flat-square https://img.shields.io/coveralls/couchapp/couchapp/master.png?style=flat-square https://readthedocs.org/projects/couchapp/badge/?version=latest&style=flat-square

CouchApp is designed to structure standalone CouchDB application development for maximum application portability.

CouchApp is a set of scripts and a jQuery plugin designed to bring clarity and order to the freedom of CouchDB's document-based approach.

Also, be sure to checkout our Erlang-based sibling, erica.

Render HTML documents using JavaScript templates run by CouchDB. You'll get parallelism and cacheability, using only HTML and JS. Building standalone CouchDB applications according to correct principles affords you options not found on other platforms.

CouchDB's replication means that programs running locally can still be social. Applications control replication data-flows, so publishing messages and subscribing to other people is easy. Your users will see the benefits of the web without the hassle of requiring always-on connectivity.

Couchapp requires Python 2.6 or greater but not in Python3. Couchapp is most easily installed using the latest versions of the standard python packaging tools, setuptools and pip. They may be installed like so:

$ curl -O https://bootstrap.pypa.io/get-pip.py
$ sudo python get-pip.py

Installing couchapp is then simply a matter of:

$ pip install couchapp

or this way if you cannot access the root (or due to SIP on macOS), then find the executable at ~/.local/bin. For more info about --user, please checkout pip help install:

$ pip install --user couchapp

To install/upgrade a development version of couchapp:

$ pip install -e git+http://github.com/couchapp/couchapp.git#egg=Couchapp

Note: Some installations need to use sudo command before each command line.

Note: On debian system don't forget to install python-dev.

To install on Windows follow instructions here.

More installation options on the website.

Read the tutorial.

The document of master branch is available at https://couchapp.readthedocs.io/en/latest.

Branch stable-1.0 is here: http://couchapp.readthedocs.io/en/stable-1.0/

We use nose. and nose-testconfig. for setting up and running tests.

$ python setup.py nosetests

Our nosetests will run with options listed in setup.cfg.

In the tests directory, copy config.sample.ini to config.ini, tweak the settings, and then modify your setup.cfg:

[nosetests]
...
tc-file=tests/config.ini

If you're wanting to examine code coverage reports (because you've got big plans to make our tests better!), you can browse around the cover dir

$ cd cover
$ python2 -m SimpleHTTPServer

or (if you prefer python3):

$ python3 -m http.server

If you want to debug the failed run with pdb, add the following option to setup.cfg:

[nosetests]
...
pdb=1

Thanks for testing couchapp!

We generate the document via sphinx.

First, prepare our building env. We need sphinx:

$ cd docs/
$ pip install sphinx

To build it, just issue:

$ make html

And sphinx will generate static html at docs/_build/html. We can browse the site from this dir already.

couchdb-login-jquery's People

Contributors

jchris avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

couchdb-login-jquery's Issues

Time-out?

I realized that users are logged out automatically after a certain time but there's no logged-out event firing.
How long is this time-out?
Is there a way to have users logged in all the time? (cookies)

userCtx.roles must be checked for isEmpty

In IE8 the following fails (in function initWidget(){) with a object does not such property

if (userCtx.roles.indexOf("_admin") != -1) {

To fix it add a isEmpty check

if (!$.isEmptyObject(userCtx.roles) && userCtx.roles.indexOf("_admin") != -1) {

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.