This repository has been archived by the owner on Dec 1, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve documentation and fix tests.
- Loading branch information
Karthik Viswanathan
committed
Jul 19, 2012
1 parent
3a438b9
commit 0b230bd
Showing
10 changed files
with
126 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,42 +1,38 @@ | |||
# Napkin | # Napkin | ||
|
|
||
## What It Is | ## Summary | ||
|
|
||
A rapid web prototyping tool to create a functional wireframe. | Napkin is a rapid web prototyping tool meant for users who want to make functional, revisionable mockups that can easily be shared and exported to baseline front and back-end code. | ||
|
|
||
## High-Level Documentation | ## High-Level Overview | ||
|
|
||
[Overview](https://github.com/mozilla/napkin/blob/master/docs/overview.md) | [Overview](https://github.com/mozilla/napkin/blob/master/docs/overview.md) | ||
|
|
||
## Installation Instructions | ## Installation Instructions | ||
|
|
||
Clone the repository | Clone the repository | ||
|
|
||
> git clone git://github.com/mozilla/napkin.git | $ git clone git://github.com/mozilla/napkin.git | ||
|
|
||
Install Brew and redis | Install brew; instructions: https://github.com/mxcl/homebrew/wiki/installation. | ||
Next, use brew to get redis: | |||
|
|
||
Brew instructions: https://github.com/mxcl/homebrew/wiki/installation | $ brew install redis | ||
|
|||
> brew install redis | |||
|
|
||
Run redis in the background | Run redis in the background | ||
|
|
||
> redis-server & | $ redis-server & | ||
|
|
||
Install node by using brew or through the website http://nodejs.org/#download | Install node by using brew or through the website http://nodejs.org/#download | ||
|
|
||
> cd napkin | $ cd napkin | ||
$ cp local.json-dist local.json | |||
> cp local.json-dist local.json | $ npm install | ||
> npm install | |||
Run the site | |||
|
|
||
> node app.js | Run napkin on http://localhost:3000: | ||
|
|
||
## Run Tests | $ node app.js | ||
|
|
||
> make test | Run tests (optional): | ||
|
|
||
$ make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,43 +1,50 @@ | |||
# Data Structure - version 0.1 | # Data Structure - version 0.1 | ||
|
|
||
## Key Format | ## Key/Value Format | ||
|
|
||
### Projects (Sitemaps) | ### Projects | ||
|
|
||
String | Key: <userEmail>:projects | ||
|
|
||
project:test@test.org:<project_id> | Value: Hash of <projectId> => <projectObject> (JSON) | ||
|
|
||
Properties | Properties: | ||
|
title - title of this project | ||
title, author, created (default = current time) | author - who, identified by email, was this created by | ||
created - what time was this created; defaults to current time | |||
|
|
||
### Screens | ### Screens | ||
|
|
||
String | Key: <userEmail>:projects:<projectId>:screens | ||
|
|||
project:<project_id>:screen:<screen_id> | |||
|
|
||
Properties | Value: Hash of <screenId> => <screenObject> (JSON) | ||
|
|
||
name, is_start (default = false), layout | Properties: | ||
title - title of this screen | |||
isStart - whether this screen is the first to be viewed; defaults to false | |||
layout - what layout this screen is using | |||
|
|
||
### Components | ### Components | ||
|
|
||
String | Key: <userEmail>:projects:<projectId>:screens:<screenId>:components | ||
|
|
||
project:<project_id>:screen:<screen_id>:component:<component_id> | Value: Hash of <componentId> => <componentObject> (JSON) | ||
|
|
||
Properties | Properties: type, layout (has integer properties row and col), action (optional; for type = 'form') | ||
|
type - the type of this component | ||
type, layout, action (optional) | layout - object with integer properties row and column that represent the location of this component in the grid | ||
action - for forms to identify which screen they should submit to | |||
|
|
||
### Elements | ### Elements | ||
|
|
||
String | Key: <userEmail>:projects:<projectId>:screens:<screenId>:components:<componentId>:elements | ||
|
|||
project:<project_id>:component:<component_id>:element:<element_id> | |||
|
|
||
Properties | Value: Hash of <elementId> => <elementObject> (JSON) | ||
|
|
||
type, name, identifier, layout, required, src (optional) | Properties: | ||
head - true if this element is the head of the linked list, meaning that it is at the top of its parent component | |||
nextId - the element that comes after this one in the linked list; along with head, this determines the order of elements | |||
name - for input fields, determines label and name attribute | |||
required - for input fields, true if they are required; defaults to false | |||
text - for heading/paragraph fields, inner text content | |||
level - for heading fields, the level of the heading; an integer from 1 to 6, representing h1 to h6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.