A microframework in node.js called elet

69 views
Skip to first unread message

Justin John

unread,
Aug 9, 2015, 11:55:22 AM8/9/15
to nodejs
I would like to present a microframework in Node.js called Elet which was inspired by CakePHP framework. It helps in building web applications simpler and require less code. 
Please check: https://github.com/justin-john/elet 

Please review Elet and let me know how I can improve it. Your suggestion will be highly appreciated. If any one of you like to contribute with your ideas, please do not hesitate to contact me or make a pull request in repository. 

Adam Reynolds

unread,
Aug 9, 2015, 1:16:17 PM8/9/15
to nod...@googlegroups.com

Had a quick look. Why would I use this over express?

--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups "nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodejs+un...@googlegroups.com.
To post to this group, send email to nod...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/f7e69b80-3943-4a02-aa4c-c71922427774%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Angel Java Lopez

unread,
Aug 9, 2015, 1:16:27 PM8/9/15
to nod...@googlegroups.com
Nice!

First suggestions, questions:

- Maybe fs.readFileSync in view.js engine method is something to be cached, or replaced by async call (yes, I know, it could imply that engine method becomes async... no free lunch ;-) I would prefer file content caching, and watch file system changes. Or implement async call using fiber module (but I think it could be "too much")

- Any example of: authentication, upload file?

- Maybe cache of compiled templates, like the output of hogan.compile...  Mustache cache the same text, and then skip compile

- Tests, tests, tests ;-)

Angel "Java" Lopez
@ajlopez


--

Justin John

unread,
Aug 10, 2015, 10:01:28 AM8/10/15
to nodejs
Thank you @ajlopez

I never think about template cahe in this module. It could be a great boost in load time. I don't got usage of async here. 

Sorry, no example are provided for authentication, upload file now. I'll add these things later. To be frank, I need to work on authenication part.

Yes, Tests are first thing that are in my mind now. It's very difficult to check all sceanrio's that are working well will work with new updates. But I'm in confusion which testing framework to be used, whether it be mocha, jasmine or something else.

Actually I started this as study purpose to create an wrapper that can be used in web application that doesn't use any external npm dependencies. 

Thank you once again for pointing me to all these questions.

Justin John

unread,
Aug 10, 2015, 10:01:44 AM8/10/15
to nodejs
@Adam This doesn't substitute express at all. Actually, what I tried is to create something that can be used to create web applications without almost no external npm modules(except templates) dependencies.  One of feature that I would say is it's ease to create application by creating the some controller file with method on it will accept the request and render view. This almost leads to MVC pattern with minmum coding by the developers. 

Thank you 
Reply all
Reply to author
Forward
0 new messages