arrowjs / arrowjscore Goto Github PK
View Code? Open in Web Editor NEWHigh performance MVC Framework based on Express with many extra features
Home Page: http://arrowjs.github.io/ArrowjsCore/
License: MIT License
High performance MVC Framework based on Express with many extra features
Home Page: http://arrowjs.github.io/ArrowjsCore/
License: MIT License
Add comments and jsdoc
Hi,
This is not an issue but a request. Can ArrowJS core support mongodb and mongoose ODM as an alternative for Postgre DB. Since MongoDB is quite popular and its flexibility in Data structure then I believe it is deserved to be a part of ArrowJS.
Thanks
Trung
/usr/local/bin/node server.js
Application started on port 3333 , Process ID: 3526
{ path: '/modules/*/module.js' }
undefined
undefined
We have 3 types of config :
Write help document how ArrowApplication work using LucidChart
Run
'use strict';
const Arrow = require('arrowjs');
const arrowZmq = require('arrow-zeromq');
const application = new Arrow();
application.setConfig("port","3333");
application.addPlugin(arrowZmq());
application.start();
Error
TypeError: application.setConfig is not a function
Hi,
My web site uses Firebase and SDK 3.0 which requires onetime initialize.
Is there any way to implement a class similar to ArrowHelper and then plug into the system. The object will be initialized onetime as system up then shared to all routes.
Thanks,
Arrows CMS depends on Arrowjs Core.
There are two ways:
1- Require Arrowjs Core module from npmjs (always stable version)
2- Reference to Arrowjs Core module in development (always latest, unstable version)
Got this error when call function link_to
, example: {{ link_to('home') }}
TypeError: Cannot read property 'replace' of undefined
Use mocha, to write unit test for every module
example route:
"/change-theme/:theme([0-9a-zA-Z-]+)": {
get: {
handler: controller.changeTheme,
name: 'change-theme'
}
}
call function link_to
:
{{ link_to('change-theme', {theme: 'default'}) }}
result:
http://localhost:3333/change-theme/default([0-9a-zA-Z-]+)
Look at this
https://github.com/arrowjs/Documents/tree/master/CoreAPI
Run again to generate document
old config_manager is group of function. Difficult to debug and add new features
Run through all examples and demo
Update to Node.js 8 latest version
If there is bug then create issues first
Write simple, intuitive instruction how to install Arrowjs Core
List all problems that user may encounter and how to fix
System will load all event in config/event folder:
What is event?
configModule reload is a event
event need key and function. can make a chain of event
I had implemented it in a project, just modify features/users/actions/user.js
action named 'findWithRole' and a little bit in config/passport.js
:
action.findWithRole = function (conditions) {
return Promise.coroutine(function*() {
let user = yield app.models.user.find(conditions);
let permissions = {
feature: {},
plugin: {}
};
if (!user)
return null;
yield Promise.map(user.role_ids, function (role_id) {
return app.models.role.findById(role_id).then(function (role) {
let role_permissions = JSON.parse(role.permissions);
if (role_permissions.feature) {
Object.keys(role_permissions.feature).forEach(function (key) {
permissions.feature[key] = _.union(permissions.feature[key], role_permissions.feature[key]);
});
}
if (role_permissions.plugin) {
Object.keys(role_permissions.plugin).forEach(function (key) {
permissions.plugin[key] = _.union(permissions.plugin[key], role_permissions.plugin[key]);
});
}
});
});
user = user.toJSON();
user.role = {
permissions: JSON.stringify(permissions)
};
return user;
})();
};
But it will return req.user
as a raw JSON object instead of Sequelize model as before. You guys can consider to refer it.
Now we use nunjucks. We will support ejs, handlebar, mustache .v.v
with sql, postgres, sqlite use sequelize to connect db
with mongo use moogoose
Hi,
I use ArrowJS on Windows (7,8,10), all have same issues (see attached file for ref.)
Example: t('new key')
return undefined
Should return new key
instead of undefined
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.