Giter VIP home page Giter VIP logo

coke's Introduction

DreamersLab official website

coke's People

Contributors

ben-lin avatar rayshih avatar tommy351 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

coke's Issues

Some time the `UTIL.is` could not identify error

for example, it cannot identify this error:

OperationalError: Command failed: convert.im6: no decode delegate for this image format `/tmp/4yJaX94beR3sNjrbkS38fqst' @ error/constitute.c/ReadImage/544.
convert.im6: no images defined `/tmp/BJqy9muIS7OtvT58ncbUxbg9ZMwIy5N6' @ error/convert.c/ConvertImageCommand/3044.\n

The reason is part of the judgement inside UTIL.is use toString and match the regex, but some library implemented toString to other then form of [object blahblah]

'this' is losing context in controller

Inside a controller, and I have defined a custom method _xxx
which I'd like to call in some other action within the same controller.

COKE prompt TypeError: Object # has no method '_xxx'

Probably 'this' is losing some context inside the controller

Pushed undefined js group of assets in view will result in 500 error

Before adding "projects" js group to assets, pushed "projects" assets js group to view will result in 500 error.

The error message:

TypeError: Cannot read property 'cdn' of undefined
    at /srv/www/protoapp/node_modules/coke/lib/assets/lib.js:185:20
    at Array.forEach (native)
    at Object.js (/srv/www/protoapp/node_modules/coke/lib/assets/lib.js:180:15)
    at eval at <anonymous> (/srv/www/protoapp/node_modules/thunder/lib/thunder.js:80:14)
    at Object.<anonymous> (/srv/www/protoapp/node_modules/thunder/lib/thunder.js:87:16)
    at ServerResponse._render (/srv/www/protoapp/node_modules/express/lib/view.js:425:21)
    at ServerResponse.render (/srv/www/protoapp/node_modules/express/lib/view.js:318:17)
    at ServerResponse._render (/srv/www/protoapp/node_modules/express/lib/view.js:432:10)
    at ServerResponse.render (/srv/www/protoapp/node_modules/express/lib/view.js:318:17)
    at /srv/www/protoapp/app/controllers/projects.js:49:13

before/after filters don't work properly

In a controller, the before/after filters don't work properly with options like 'only' or 'except';
COKE tends to apply the filters to every action no matter how you setup the options.

database names cannot contain the character '.'

If the project name, accepted by Coke's generator, contains '.' as delimiter,
the db name inside /config/:env/config.yml is not valid in MongoDB.
The '.' character should be replaced by '-' or '_'

Make generator syntax more compatible

Make generator syntax more compatible, as well as the generator template. ex. template with changed syntax, more line breaks, more or lack of spaces etc.

Rewrite router

Now we use railway-routes therefore we have to use our own flow control for before and after filters instead of letting express to handle it. It's complex and inefficient.

Add before, after filter

Add before, after filter. Now we can use middleware instead, however these 2 methods really helps.

Write a forum use COKE for COKE

Write a forum use COKE for COKE.

Features

  • login with everyauth ( fb, twitter, google, weibo? )
  • user
  • post
  • comments ( nested or )
  • tagging system
  • markdown support
  • share with fb, twitter ( weibo? plurk? )
  • pagenation
  • google custom search or do it ourown?
  • use twitter bootstrap for layout

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.