Skip to content
forked from gitana/alpaca

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.

License

Notifications You must be signed in to change notification settings

caluwaertp/alpaca

 
 

Repository files navigation

Alpaca - JSON Forms for jQuery and Bootstrap

Alpaca provides the easiest and fastest way to generate interactive forms for the web and mobile devices. It runs simply as HTML5 or more elaborately using Bootstrap, jQuery Mobile or jQuery UI. Alpaca uses Handlebars to process JSON schema and provide developers with an extensible framework for implementing controls, wizards, layouts, I18N support and an custom data persistence.

The goal of Alpaca is to provide the open source community with a fantastic forms engine that rivals or beats what most proprietary vendors offer. Using Alpaca, you can host really nice forms for your back end services, whether they are proprietary, enterprise or SaaS offerings.

The philosophy behind Alpaca is that you should design your forms once and have them work on lots of different devices and UI engines without having to do the same work twice.

Here is a sample registration form written once and rendered using four different approaches:

Alpaca is an open-source project licensed under Apache 2.0. It was started in 2010 and has been growing steadily since thanks to a really awesome community of customers, consultants and technology champions world-wide.

Web Site, Documentation and CDN

For information, demos and documentation regarding Alpaca, please visit the the Alpaca Forms web site.

All of the Alpaca distribution assets are available via CDN at http://code.cloudcms.com. For more information, visit the Alpaca Forms web site.

Sponsors

Cloud CMS is actively developed and maintained by Cloud CMS.

Cloud CMS is an API-First, JSON-friendly Content Management Platform for mobile and web applications. It provides the ideal backend for Alpaca forms design, capture and reporting. Stop by our web site to learn more about Cloud CMS.

The project also has a large number of customers who use Alpaca, contribute code and receive support, some of whom are listed on our web site.

Official Support

We offer paid support for your technical development and production environments. Paid support includes a service level agreement for priority response and bug fixes.

If you are interested in sponsoring or are interested in consulting services, please Contact Us.

Community

We have an awesome community. Everything is straight up out in the open and anyone can build or contribute. We keep everything under an Apache 2.0 license so that you're free to do whatever you please with Alpaca.

There are several ways to interact with the Alpaca community.

  • Browse the documentation and try out the interactive examples. On each page, you'll find a Disqus forum that you can use to ask questions specific to that page. As others browse the documentation, they'll find your question and will have the context at hand to answer it.
  • Visit the Alpaca.js web site and ask your question to the broader Alpaca community. Be sure to include code samples, URLs or http://jsfiddle.net/ links so that others can reproduce your scenario quickly. It's always best to empower others to help you.
  • Add a GitHub Issue if you've found an actual bug or have a feature request that you'd like to get prioritized into the roadmap.
  • Submit a Pull Request if you've fixed a bug and want to contribute code back to the Alpaca project. This is the most powerful and effective way to influence the product. Pull requests give you a way to write your own additions or adjustments to the code base and make it very easy for us to merge your changes into the product.
  • Get Developer Assistance if you have an urgent issue and would like priority paid support. Cloud CMS and/or its partners provide fast and reliable developer assistance for your projects.

Extensibility

Alpaca is designed to be very extensible, allowing you to plug in new field implementations, DOM layouts, callbacks, CSS classes, I18N bundles and much more. It also integrates naturally to HTTP service backends using a connector layer.

Alpaca is ideal for consultants or organizations that wish to have a solid JavaScript form engine that provides a platform that they can grow into for current and future project needs.

Can I fork Alpaca and use it my own projects?

Yes, absolutely. That's the whole idea. Fork it, use it in your projects, make money from it, live a better life, spend more time with your kids. We hope that Alpaca is useful to you.

If you come up with something good (like a bug fix or a new feature), consider submitting a Pull Request back to the project so that others may benefit. And so that they too might, in turn, get more sleep, enjoy your work, be happier and get more out of this adventure called life.

Compatibility

The latest release of Alpaca is compatible with jQuery 1.9.1 and up. For a full breakdown of dependencies, check the bower.json and/or /lib directory for third-party vendor libraries and versions that are used.

In general, we aspire to support the latest versions of our third-party dependencies. Some folks may want Alpaca to be backward-compatible with earlier versions of dependencies and in general, it is our desire to have it be so. But in cases where that is not possible, we will opt for the latest. In those cases, we recommend folks fall back to an earlier version of Alpaca.

How to Build Alpaca

The first thing you should do is grab the source. We won't cover how to do that here but instead we recommend that you learn about Git and GitHub. You can pull the source down to your local machine to build things locally.

The command line for doing this is basically:

git clone https://github.com/gitana/alpaca.git

Prerequisites

To build Alpaca, you will need to have Node.js, Gulp and Bower installed. If you're new to Node.js or Gulp, you could check out this writeup - http://travismaynard.com/writing/getting-started-with-gulp.

Once you have Node.js installed, you essentially need to do this:

npm install -g gulp
npm install -g bower

Alpaca requires python 2.7.x to build some of it's node_module dependencies. Make sure you have this installed. If you're currently using Python 3.x, you will need to tell the build to use 2.7.x:

npm install --python=python2.7
(or)
npm config set python python2.7

Building Alpaca

Building Alpaca is pretty easy. Just run:

npm install

This will do the following for you:

  • pull down all of the Node module dependencies
  • run Bower to pull down client-side (browser) dependencies

To then build, you can do this:

npm start

If you want to use Gulp directly, you can alternatively run this:

gulp clean default

Either npm start or gulp clean default will build everything. The build distribution assets will be in build/alpaca.

Building the Web Site and Running a local Web Server

Alpaca includes a web site along with documentation, samples and much more. To build the web site, you will first need to install Jekyll (not covered here).

Simply do this:

gulp site

And you can run a local web server like this:

gulp server

Alpaca Distributions

The build produces four sets of assets and they are placed in:

  • build/alpaca/web (for basic web forms and layout)
  • build/alpaca/bootstrap (for bootstrap enabled forms and layout)
  • build/alpaca/jqueryui (for jQuery UI enabled forms and layout)
  • build/alpaca/jquerymobile (for jQuery Mobile enabled forms and layout)

Each directory contains a JS file and a CSS file for its respective build.

Each JS file is UMD ready and will work within both an AMD and CommonJS container.

Troubleshooting

If you run into any Bower related issues during the build, you might want to clear out your Bower cache using this command:

bower cache clean

And then try again.

Manual build commands

While npm install will pretty much do everything for you, there are also some manual commands you can run if you need to perform individual steps:

  • To install Bower assets, do bower install
  • To clear Bower cache, do bower cache clean
  • To run the Gulp build, do gulp
  • To build the Alpaca web site, do gulp default server
  • To run a local Alpaca web server, gulp default server

Contributors

Here is a long list of our project's brothers and sisters in arms.
These folks have made numerous contributions to Alpaca over the years:

...and many others via the Alpaca Web Site and Alpaca Issues!

About

Alpaca provides the easiest way to generate interactive HTML5 forms for web and mobile applications. It uses JSON Schema and simple Handlebars templates to generate great looking, dynamic user interfaces on top of Twitter Bootstrap, jQuery UI, jQuery Mobile and HTML5.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 85.7%
  • HTML 6.7%
  • PHP 5.1%
  • CSS 1.4%
  • Ruby 0.6%
  • Gherkin 0.4%
  • Other 0.1%