Hoodie (software): Difference between revisions
No edit summary |
m changing to lower case |
||
Line 21: | Line 21: | ||
}} |
}} |
||
In [[computing]], '''Hoodie''' is an [[open-source]] [[Javascript]] package, that enables [[offline first]], [[Front-end_web_development| |
In [[computing]], '''Hoodie''' is an [[open-source]] [[Javascript]] package, that enables [[offline first]], [[Front-end_web_development| front-end]] web development by seamlessly providing a complete backend infrastructure. It aims to allow developers to rapidly design web applications using only frontend code by providing a backend based on [[Node.js]] and [[CouchDB|Apache CouchDB]]. It runs on many [[Unix-like]] systems as well as on [[Microsoft Windows]]. |
||
Hoodie is produced by the Hoodie Open Source Project, founded by Jan Lehnardt and Gregor Martynus in 2011<ref>{{cite web|url=https://twitter.com/janl/status/796072442959712256 |title=Twitter: @janl |publisher= @janl |accessdate=2 Jan 2017}}</ref> and first released in 2013<ref>{{cite web|url=https://www.youtube.com/watch?v=X3Ttb0BD8pg |title=First Hoodie presentation at apps.berlin.js (28.02.2013) |publisher=Alex Feyerke |accessdate=2 Jan 2017}}</ref>. It is written in [[Javascript (programming language)|Javascript]] and released as free software under the [[Apache License]] 2.0 <ref>{{cite web|url= https://github.com/hoodiehq/hoodie/blob/master/LICENSE |title= License |publisher= Hoodie Open Source Project |accessdate=29 Dec 2016}}</ref> |
Hoodie is produced by the Hoodie Open Source Project, founded by Jan Lehnardt and Gregor Martynus in 2011<ref>{{cite web|url=https://twitter.com/janl/status/796072442959712256 |title=Twitter: @janl |publisher= @janl |accessdate=2 Jan 2017}}</ref> and first released in 2013<ref>{{cite web|url=https://www.youtube.com/watch?v=X3Ttb0BD8pg |title=First Hoodie presentation at apps.berlin.js (28.02.2013) |publisher=Alex Feyerke |accessdate=2 Jan 2017}}</ref>. It is written in [[Javascript (programming language)|Javascript]] and released as free software under the [[Apache License]] 2.0 <ref>{{cite web|url= https://github.com/hoodiehq/hoodie/blob/master/LICENSE |title= License |publisher= Hoodie Open Source Project |accessdate=29 Dec 2016}}</ref> |
Revision as of 12:13, 7 January 2017
File:Hoodie Logo.svg | |
Developer(s) | Hoodie Open Source Project |
---|---|
Initial release | 2013 |
Written in | Javascript |
Operating system | Cross-platform |
Type | |
License | Apache |
Website | hood |
In computing, Hoodie is an open-source Javascript package, that enables offline first, front-end web development by seamlessly providing a complete backend infrastructure. It aims to allow developers to rapidly design web applications using only frontend code by providing a backend based on Node.js and Apache CouchDB. It runs on many Unix-like systems as well as on Microsoft Windows.
Hoodie is produced by the Hoodie Open Source Project, founded by Jan Lehnardt and Gregor Martynus in 2011[1] and first released in 2013[2]. It is written in Javascript and released as free software under the Apache License 2.0 [3]
Overview
Hoodie is designed to abstract away the configuration and communication between the database backend and allow web-based Front-end development using simple calls to the Hoodie API. Hoodie uses CouchDB to store data for the application. If the application is offline and cannot access the CounchDB database, data is stored locally on the device in the offline PouchDB database. The data will later be synced to CounchDB when the server is re-connected, using CouchDB’s unique database synchronisation feature [4].
Hoodie depends on Node.js and Node Package Manager (npm) Javascript packages to allow Hoodie to be used from the command line and to provide other tools for Hoodie projects. When Hoodie and its dependencies are installed, a skeleton project directory and basic files to start a web application including index.html and main.js are created. Hoodie can also be used with large web application frameworks such as Backbone.js, Ember.js or AngularJS.
The core Hoodie package is targeted at creating personal applications and saving user data to personal storage areas. For instance, for todo lists, memos or favourite book lists. A set of basic commands are provide to achieve these functions, such as user signup, login and store. Hoodie extensions provide functions beyond the core backend commands. Extensions can be written by anyone and use the npm package system. For instance, an extension to store data globally and allow mulitple users to share and collaborate on the same data can be installed.
Architecture
The core structure of Hoodie is to provide a Javascript package that provides API calls to store data on CouchDB or offline on PouchDB. The user does not need to understand how the on/offline synchronisation works. The backend is dealt with by simple commands to store and retrieve data.
Example of the store function:
hoodie.store.add(type, object);
The 'hoodie.store.add' function adds an object to a personal database store. The 'type' parameter is where the object will be stored in CouchDB. CounchDB is a noSQL database and as such does not have tables but the 'type' identifier is similar to adding to a particular table in a database. This allows data/documents of a similar type to be stored, queried or retrieved using the same type identifier.
Full example of store function:
$('#todoinput').on('keypress', function(event) {
if (event.keyCode === 13 && event.target.value.length) {
hoodie.store.add('todo', {title: event.target.value});
event.target.value = '';
}
});
The example above shows how a todo item could be added to the hoodie store. The item is added as with a type of 'todo' and the data sent is the simply a title value.
Community
Hoodie is open source and encourages community involvement. It is one for the first open source projects to establish a code of conduct from the outset[5][6]. Hoodie community aims to involve both coders and non-coders in helping the project. As the Hoodie package is aimed at beginners and users unfamiliar with full stack development, the community encourages all levels of technical and non-technical users to get involved.
Characteristics
- Designed for offline first, noBackend, noSQL web development.
- Hoodie is open source and encourages community involvement.
- Hoodie is flexible, further extensions to core functionality are encouraged.
- Designed using an approach of writing simple, idealised 'dreamcode' and then finding a way to implement this into working code.
Platforms and users
Built to be cross-platform, Hoodie works on all major Linux distributions, as well as on other Unix-like systems Mac OS X, and Microsoft Windows support.
Hoodie is used commercially by the Appback hosting site, mintues.io web application and Neighbourhoodie development house.
A showcase of applications using Hoodie is provided on the Hoodie website.
See also
References
- ^ "Twitter: @janl". @janl. Retrieved 2 Jan 2017.
- ^ "First Hoodie presentation at apps.berlin.js (28.02.2013)". Alex Feyerke. Retrieved 2 Jan 2017.
- ^ "License". Hoodie Open Source Project. Retrieved 29 Dec 2016.
- ^ "CouchDB Replication Protocol". Apache CouchDB. Retrieved 2 Jan 2017.
- ^ "Code of Conduct". TWiTFLOSS. Retrieved 29 Dec 2016.
- ^ "Hoodie aims to be one of open source's most diverse and inclusive communities". Opensource.com. Retrieved 2 Jan 2017.