Rapid Prototying with AllcountJS [team]

posted in: Design, JavaScript | 0

https://allcountjs.com/

https://www.tumblr.com/search/allcountjs

Your code:

A.app({
    appName: "Hello Hermanus",
    onlyAuthenticated: true,
    appIcon: "phone",
    menuItems: [
        {
            name: "FooBar",
            entityTypeId: "FooBar",
        }
    ],
    entities: function(Fields) {
        return {
            FooBar: {
                fields: {
                    foo: Fields.text("Foo"),
                    bar: Fields.date("Bar")
                }
            }
        }
    }
});

 

Fire up the application server and tell it which db you want to create and use:

$ allcountjs –git ./ –db mongodb://localhost:27017/helloworld-app-db

Application server for “./” listening on port 9080

The result

Screen Shot 2015-08-13 at 2.49.53 PM

Screen Shot 2015-08-13 at 2.50.21 PM

Screen Shot 2015-08-13 at 2.50.38 PM

Screen Shot 2015-08-13 at 2.51.03 PM

Screen Shot 2015-08-13 at 2.51.22 PM

 

DB

/* 1 */
{
    "_id" : ObjectId("55cc879ddf07805009dda83e"),
    "foo" : "one",
    "bar" : ISODate("2015-07-31T22:00:00.000Z"),
    "createTime" : ISODate("2015-08-13T12:03:41.754Z"),
    "modifyTime" : ISODate("2015-08-13T12:03:41.754Z"),
    "__textIndex" : [ 
        "one", 
        "sat", 
        "aug", 
        "01", 
        "2015", 
        "00:00:00", 
        "gmt+0200", 
        "(sast)"
    ],
    "__v" : 0
}

/* 2 */
{
    "_id" : ObjectId("55cc87a7df07805009dda83f"),
    "foo" : "two",
    "bar" : ISODate("2015-08-01T22:00:00.000Z"),
    "createTime" : ISODate("2015-08-13T12:03:51.242Z"),
    "modifyTime" : ISODate("2015-08-13T12:03:51.242Z"),
    "__textIndex" : [ 
        "two", 
        "sun", 
        "aug", 
        "02", 
        "2015", 
        "00:00:00", 
        "gmt+0200", 
        "(sast)"
    ],
    "__v" : 0
}

/* 3 */
{
    "_id" : ObjectId("55cc87b1df07805009dda840"),
    "foo" : "three",
    "bar" : ISODate("2015-08-02T22:00:00.000Z"),
    "createTime" : ISODate("2015-08-13T12:04:01.106Z"),
    "modifyTime" : ISODate("2015-08-13T12:04:01.106Z"),
    "__textIndex" : [ 
        "three", 
        "mon", 
        "aug", 
        "03", 
        "2015", 
        "00:00:00", 
        "gmt+0200", 
        "(sast)"
    ],
    "__v" : 0
}

Leave a Reply