Git Product home page Git Product logo

arrowjscore's People

Contributors

nguyenpham93 avatar paduvi avatar phongnv3773 avatar techmaster avatar thanhnv-techmaster avatar trquoccuong avatar vhchung avatar

Stargazers

 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

arrowjscore's Issues

Request for MongoDB support

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

Some "undefined" error happens

/usr/local/bin/node server.js
Application started on port 3333 , Process ID: 3526
{ path: '/modules/*/module.js' }
undefined
undefined

Wrap the redis

  • When system dont have redis use: fakeredis.
  • For use redis must call. App.RedisCache instead of call redis.client()

Update configManager

We have 3 types of config :

  • unmutable config only loading when start app.
  • mutable config which change by user;
  • mutable config change by environment .
    Need find solution to manager this.

Replace all global variable

  • global_ function and manager system belong to a Arrow Application.
  • Must call require('./ArrowApp').XYZ to call function or manager

application.setConfig is not a function

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

Write help document how to install Arrowjs CMS

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)

Error on call function link_to

Got this error when call function link_to, example: {{ link_to('home') }}

TypeError: Cannot read property 'replace' of undefined

function link_to generate route contain regular expression

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-]+)

Service Manager system

  • Call to another service write in any framework (seneca, actionhero)
  • support microservices

Thinking in event

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

Integrate multiple roles instead of having only 1 role at the same time

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.

Arrowjs on Windows has issue

Hi,
I use ArrowJS on Windows (7,8,10), all have same issues (see attached file for ref.)

arrowjs_bug

Below are steps to install ArrowJS CMS on Windows

  1. Install nodejs (4.x hoac 6.x)
  2. Install python 2.7
  3. Install visual studio 2015 (selected C++ in order to build buffertools)
  4. Install redis for windows
  5. Install postgres for windows
  6. Run npm install (admin privileged)
  7. Change config (db and redis)
    Note: changed fakeredis to redis already

    Please help to check.
    Thanks

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.