dreamerslab / coke Goto Github PK
View Code? Open in Web Editor NEWA full stack MVC framework that speeds up your web development.
Home Page: coke-js.org
A full stack MVC framework that speeds up your web development.
Home Page: coke-js.org
Having trouble with creating parent path files
Add view engine as new generator option such as jade, ejs.
Need to add generator templates
Turn coke from a fn to an object, use init as the original function.
attach utils, generators, middlewares and libs to coke
Add README.md content for generated project. Bette with an intro and basic guides. Also provide online resources. ex. coke-js.org
With markdown format.
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]
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
Add cluster support in v0.1.0
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
Add database driver to support mysql, redis, mongodb ...
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.
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 '_'
Typo err400 -> err404
COKE hangs when invalid database credentials are specified (most of the time, the default). It should throw an error instead
Array type is not translated properly in db/schema.js
https://github.com/dreamerslab/coke/blob/master/lib/cli/generators/lib.js
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.
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.
Make generator pluggable in v0.2.0
Building assets would fali after deleting built assets.
The log says that COKE can't find css files already deleted.
Add before, after filter. Now we can use middleware instead, however these 2 methods really helps.
Add resource helper
Add timestamp to debug logger in v0.1.0
Use json instead of yaml files for configs. It is better to keep it simple. Also the js version of yaml parse does not work well.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.