kreees / muon Goto Github PK
View Code? Open in Web Editor NEWClient-server node.js based web framework for single page applications
License: MIT License
Client-server node.js based web framework for single page applications
License: MIT License
Hello and Thank You! This is an amazing project!
When exploring it, I did run into one very minor snag.
running ./bin/init.js some_project
throws:
...
Creating: /client/packages/application/tr/default/action/
Creating: /client/packages/application/tr/ru/action/
fs.js:427
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: ENOENT, no such file or directory '/.../muonjs/mui_test/client/packages/application/views/layout/page/start/start.jade'
at Object.fs.openSync (fs.js:427:18)
at Object.fs.writeFileSync (fs.js:966:15)
at fs_ext.traverse_dir.complete (/.../muonjs/bin/init.js:115:8)
at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:41:17)
at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
at traverse_dir (/.../muonjs/server/lib/utils/fs/fs_ext.js:44:14)
a resolution (to the thrown error, at least):
in bin/init.js
add "/client/packages/application/views/layout/page/start/" to array dir
add "/client/packages/application/tr/#{lang}/layout/page/start/" to array tr_dir
Consider the following code:
server = m.server().listen();
server.close();
This gives an error complaining that server has no method close();
We should return expressjs server handler as told here:
expressjs/express#1366
This works as it should and reflects a has_many association on the model class.
// models/user.js
module.exports = {
attributes: {
"nick": "text"
},
hasMany: {
projects: "project"
}
}
However this does not work as it should.
// models/user.js
module.exports = {
attributes: {
"nick": "text"
},
hasMany: {
projects: {
type: "project"
}
}
}
as m.models.user.hasManyRelations
returns blank object.
you must include license text for MIT license
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.