GithubHelp home page GithubHelp logo

colmena / colmena Goto Github PK

View Code? Open in Web Editor NEW
1.4K 1.4K 402.0 5.35 MB

Free and Open Source Full Stack RAPID API DEVELOPMENT | CURRENTLY UNMAINTAINED - READ MORE HERE ➡️

Home Page: https://github.com/colmena/colmena/issues/364#issuecomment-382581859

License: MIT License

JavaScript 2.63% HTML 3.05% CSS 2.23% TypeScript 92.09%
angular colmena colmena-cms coreui help-wanted javascript loopback mit monorepo ng2 ng4 node typescript

colmena's Introduction


Free and Open Source 
Full Stack
RAPID API DEVELOPMENT

Powered by LoopBack and Angular


About

Colmena is a starter kit for an API with an Admin interface that can be easily extended and built upon.

It is built using a collection of great Open Source projects, including but not limited to:

⚠️ Warning

This software is under active development!

Please do not use it in production without addressing the issues in the Work in Progress section

Work in Progress

Colmena is a work in progress and not all functionality is built yet.

  • Only basic ACLS are implemented, this means that the API can be used by whoever has access to it
  • The interface does not reflect the user role (admin/manager/user)
  • Content will be leaking across domains, while this should not be possible

Structure

The project is a mono-repo managed by lerna. It is structured like this:

  • apps/
    • admin The Admin interface built with Angular.
    • api The REST API built with LoopBack.
  • modules/
    • admin-* Modules that add functionality to the Admin app.
    • api-* Modules that add functionality to the API app.
  • packages/
    • admin-* Packages used by the Admin app.
    • api-* Packages used by the API app.

The structure of this project is inspired by this great example: OasisDigital/scalable-enterprise-angular.

Installation

Requirements

Software installed on your system:

  • node (v6.9.x or higher).
  • npm (v3.x or higher).

Globally installed Node packages:

npm install -g @angular/cli lerna loopback-cli

Setup

Clone the repository and install the dependencies:

git clone https://github.com/colmena/colmena
cd colmena
npm install
lerna bootstrap

Development

Running in development mode

When the project is running in development mode the API and the Admin will restart automatically when a code change is detected.

URLs

Start the project

From inside the project dir run npm run dev:

npm run dev

This will start both the API and the Admin in the same terminal.

You can also start the two components separately:

Start the API

npm run dev:api

Start the Admin

npm run dev:admin

Clean up the project

During development it can be useful to bring the project back to a clean state. To do this run:

npm run clean && npm install && lerna bootstrap

Configuring the development setup

local.yaml

You can configure the API in development mode by creating a local.yaml file in config. The contents of this file is not tracked by git so it only lives on your local machine.

To start with the default settings copy config/default.yaml to config/local.yaml.

Sample data

The API comes with a set of sample data for development.

To load the sample data when starting the API update local.yaml to include:

system:
  initdb: true

You can also use the INITDB environment variable.

API Base Url

By default the development stack assumes that the API and Admin are both started on localhost (using 127.0.0.1).

In order to run the API on another host than localhost the admin needs to know on which IP address it can reach the API. To do this you need to update the api.baseUrl config property.

Make sure to configure the API Base Url without a trailing slash.

To set the API Base Url update local.yaml to include:

api:
  # Do not use trailing spaces for the baseUrl
  baseUrl: http://192.168.12.34:3000

You can also use the API_BASE_URL environment variable.

You should now be able to connect to the Admin on http://192.168.12.34:9000 and it should connect to the API.

Development Servers

Colmena comes with a Docker Compose configuration for running development servers easily.

mongodb

To use the mongodb server update local.yaml to include:

mongodb:
  url: mongodb://localhost/colmena

You can also use the MONGODB_URL environment variable

mailhog

To use the mailhog server update local.yaml to include:

smtp:
  host: localhost
  port: 1025

You can also use the SMTP_HOST and SMTP_PORT environment variables

Start the servers

npm run servers # or: npm run servers:start

Show the servers logging

npm run servers:logs

Stop the servers

npm run servers:stop

Delete the servers

npm run servers:rm

Contributors

Thanks goes to these wonderful people (emoji key):


Bram Borggreve

💬 🐛 💻 🎨 📖 🔧

Willian Ribeiro Angelo

💻

Nick Portokallidis

💻

drmikecrowe

💻

Vladimir Mechkauskas

💻

Bernardo Arevalo

💻

yieme

💻

Brian McIntyre

💻

Rob Halff

💻

Asgeir Birkisson

💻

dthib

💻

Oleh Kukil

💻

Pulkit Singhal

💻

Tuan PM

💻

brownman

💻

Hoàng Phúc

💻

Brian Dunnette

💻

Chenzc

💻

Tersius Kuhne

💻

Alex Quiambao

💻

José Luis Di Biase

💻

Shing.

💻

Alex Wilde

💻

dmtw

💻

Marcus

💻

Brannon N. Darby II

💻

Sebastian Podgajny

💻

IsCaster

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Sponsors

Become a sponsor and get your logo on our README on Github with a link to your site. [Become a sponsor]

This project was formerly known as Loopback Angular Admin.

colmena's People

Contributors

alexthewilde avatar asgeirbirkis avatar atelier-grande avatar bdunnette avatar beeman avatar brannon-darby avatar brownman avatar chenzc avatar dmtw avatar drmikecrowe avatar dthib avatar elartix avatar flashbag avatar gitter-badger avatar hoangtrongphuc avatar iscaster avatar josx avatar ktersius avatar kumorig avatar movibe avatar nardoguy14 avatar piamancini avatar portokallidis avatar pulkitsinghal avatar rhalff avatar sebastianpodgajny avatar silverbux avatar tuanpmt avatar waffle-iron avatar yieme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

colmena's Issues

Best way/practice to limit view access to a module for a particular User Role?

Hi,

What should be the best way to limit view access to a module for a particular User Role?

Should the folder client/app/modules/my-module/ be restricted when loading?
Should I remove in some way line 'con.module.my-module', from client/app/js/app.js folder?
and also remove js files loading at client/app/index.html ?
Or should I just not load files at client/app/modules/my-module/config/ folder? So that the item in the side bar and the routes not be configured?

What do you think should be the best strategy to take and what would be the best way to implement it?

Regards!

Question: start version of grunt file

I'm wondering, is there a specific version of the grunt file that you took as 'start' and on which you added e.g. the lb-services generation grunt task or did you design the gruntfile completely from scratch ?

Cannot install

Hi,
The bower install command returned an error, any idea what it could be?
Thank you :)

jquery#2.1.1 client/app/bower_components/jquery
Loading "cssmin.js" tasks...ERROR
>> Error: Cannot find module './colors/shortener'
Loading "jshint.js" tasks...ERROR
>> Error: Cannot find module 'jshint'
Loading "filerev.js" tasks...ERROR
>> Error: Cannot find module 'ansi-regex'
Loading "cdnify.js" tasks...ERROR
>> Error: Cannot find module 'abbrev'
Loading "grunt-karma.js" tasks...ERROR
>> Error: Cannot find module 'karma'
Loading "loopback_angular.js" tasks...ERROR
>> Error: Cannot find module 'ejs'
Loading "newer.js" tasks...ERROR
>> Error: Cannot find module 'async'
Loading "ngmin.js" tasks...ERROR
>> Error: Cannot find module 'esprima'
Loading "svgmin.js" tasks...ERROR
>> Error: Cannot find module 'ansi-regex'
Loading "loopback_angular.js" tasks...ERROR
>> Error: Cannot find module 'ejs'
Warning: Task "loopback_angular" not found. Use --force to continue.

Aborted due to warnings.


Execution Time (2014-10-20 09:09:31 UTC)
loading tasks  16ms  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 94%
Total 17ms


npm ERR! [email protected] postinstall: `bower install && grunt build`
npm ERR! Exit status 3
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the loopback-angular-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     bower install && grunt build
npm ERR! You can get their info via:
npm ERR!     npm owner ls loopback-angular-admin
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.4.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Volumes/WorkSSD/mine/angularadmin/loopback-angular-admin
npm ERR! node -v v0.10.30
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Volumes/WorkSSD/mine/angularadmin/loopback-angular-admin/npm-debug.log
npm ERR! not ok code 0

up file error

events.js:72
throw er; // Unhandled 'error' event

Idea: sails as backend

Bram,

Did you ever consider using Sails as backend ? http://sailsjs.org/
I like loopback but I feel more attracted to sailsJS, which is real convention over configuration.
SailsJS = keep it simple. Loopback not always :)

Adding support for Stormpath

While it is pretty obvious (at least from my viewpoint) that LoopBack is the best overall NodeJS framework, it is quite thin on the "client side". This loopback-angular-admin is the best proof of my assessment -- since I found this project getting ready to create an extension of LoopBack Yeoman generator slc loopback that would do as good job creating client side skeleton app as it does on the server side.

Now, always looking to improve what is available, I realized that Loopback would be a lot more useful when utilizing Stormpath Authentication & User Management API instead of it's own much less ambitious equivalent code. Since I am already working with Stormpath's team on "Stormpath - LoopBack" interface, it would be great to include that in loopback-angular-admin project.

At the moment, I am trying to verify the whole concept by "hand-patching" the skeleton created by '`loopback-angular-admin``

Angular Submodule Generator

Greetings,

This is an extremely helpful project to get a workflow going for an enterprisey, full-stack app. Thank you very much for making it publicly accessible!

However, based on the architectural layout and design of the Angular.js portion, I'm left with a lingering question:
Did you use a yeoman generator for your Angular.js submodules, and if so what did you use?

I cannot find any documentation in the generator-angular app about submodules so I'm assuming you used something different?

I've found https://github.com/cgross/generator-cg-angular. It looks helpful...but I just wanted to get a more detailed peak into your development workflow.

Thanks in advance,

Tami

Failed when use the deploy to heroku function in the github project main page

the last error message is:

   jquery#2.1.3 client/app/bower_components/jquery

   ionicons#1.5.2 client/app/bower_components/ionicons
   [31m>> �[39mLocal Npm module "grunt-angular-gettext" not found. Is it installed?
   �[31m>> �[39mLocal Npm module "grunt-angular-gettext" not found. Is it installed?
   �[31m>> �[39mLocal Npm module "grunt-include-source" not found. Is it installed?
   �[33mWarning: Task "includeSource:server" not found.� Use --force to continue.�[39m

   �[31mAborted due to warnings.�[39m

Hi

Can you explain me the code?

Connecting Loopback w/DB

Hello,

Noticed that after a bit, the stored data goes away. I am assuming the app uses local storage? Anyway, I am trying to make the platform so it permanently saves data? Any suggestions?

Kenny

existing LB APIs?

If we have existing Loopback projects how do we incorporate your admin? Would it be possible to pull this repo apart so that the admin itself is a separate repo, and we simply can use this? I imagine we just focus on your client folder.. But it would be nice if that was its own distinct project to make pulling your future updates simpler.

loopback-connector-mongodb needs to be updated for ctx.isNewInstance to work

Strongloop is advocating the use of operation hooks instead of deprecated model hooks. One nice thing that comes with that functionality is the ctx.isNewInstance, cf. http://docs.strongloop.com/display/public/LB/Operation+hooks#Operationhooks-Checkingforsupportofctx.isNewInstance

However, this functionality only got introduced in v1.9.0 of loopback-connector-mongodb, but the current package.json is fixed at v1.7.0.

Simply updating package.json to use v1.11.3 of loopback-connector-mongodb causes another error, which can be fixed by updating loopback-datasource-juggler to the latest version, v2.33.1.

This again requires loopback to be updated, I was successful using the latest version, v2.19.0.

Finally, by adding "legacyExplorer": false in server/config.json, deprecation warnings otherwise printed go away.

Making these changes seem to work fine when doing a new install, I'm happy to submit a pull request for this if you'd like.

Brilliant ! Making things isomorphic would make it shine !

Dear Bram,

Really great approach and I'm still exploring. I've done some research in strongloop/loopback and I'm really convinced they offer a rock solid foundation for all types of business application (or call it line of business apps).

The real beauty could get in when going the full isomorphic path.
I'm seeing currently a few examples:

  1. Validation logic : usually validation logic client side is a subset of the server side validation logic. If would be cool if the logic is organised in such a way it's written only once and the server reuses the code file of the client side logic.
  2. entity construction (instantiation): in business apps an entity constructor makes sense for providing default values (in such a way they don't need to be set in the controller in a screen specific manner. Often the same entities are created also server side. So, a candidate for client/server sharing.
  3. permissions: typical _CanExecute behavior.

Just some random thoughts about the usage angular-formly. I'm not convinced it will be a big time saver. In the end, you will want to set specific css on controls. What about auto complete drop down, more complex foreign key and object composition/aggregation. I know that typing the html can be tedious, but a good editor with zen coding and smart snippets (as in webstorm) can work as well.
Things would be different if you would create the formly screens based on the info coming from /common/models, but then you would be limited to pure CRUD screens (i.e. no flexibility in the shape of the entities).

Great work !!!
Kind regards
paul.

Migration

How to migrate into mongodb?
i installed connector
change source to mongo with correct data and get from npm start:
"Loading existing settings"

Install Error

Hi beeman,
I'm new to node, angular and all the stuff. I would like to learn a lot from your great app, but I can't install it. After my first try, I changed a line in the package.json
from:
"grunt-ngmin": "^0.0.3",
to:
"grunt-ng-annotate": "^0.4.0",
because of a npm error-message.
In my second try, I get this:

...
codemirror#3.21.0 client\app\bower_components\codemirror

font-awesome#4.1.0 client\app\bower_components\font-awesome

jquery#2.1.1 client\app\bower_components\jquery

Der Befehl "grunt" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
(this means: The command "grunt" is written wrong or can't be found.)

npm ERR! [email protected] postinstall: bower install && grunt build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the loopback-angular-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install && grunt build
npm ERR! You can get their info via:
npm ERR! npm owner ls loopback-angular-admin
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! cwd C:\xampp\htdocs\loopback-angular-admin
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\xampp\htdocs\loopback-angular-admin\npm-debug.log
npm ERR! not ok code 0

C:\xampp\htdocs\loopback-angular-admin>

What is going wrong? In the moment I think, a lot of npm-packages are making trouble. Could this be?
Thanks, for helping

Anton

Deployment script for Amazon EC2

Hi,
would be awesome if there is a single Amazon EC2 Installation and Deployment script.

(maybe even push the Assets to S3 instead of putting it on the server.)

This isn't an issue, more of a question, createRole.principals.create

Can you please explain what is RoleMapping.USER ? I tried to go through the api docs but it's hard to understand,
createdRole.principals.create({
principalType: RoleMapping.USER,
principalId: createdUser.id
},

Is RoleMapping.USER the User Model object ? or is the role user ? or is it just a enum ?

Does it have to change according to the role ? like RoleMapping.ADMIN and RoleMapping.STUDENT (New role i have created) ?

Warning: Cannot load LoopBack app server/server.js Use --force to continue.

Firstly, thanks a million for this fantastic app!!!
I have it working but some dependencies were not met at first grunt.
Doing a PR with modified package file.

(for future readers who might bumb into an Error: listen EADDRINUSE after a successful grunt, try the following to kill running npm tasks you might have launched by trying stuff:

ps aux | grep node
Find the process ID (second from the left)
kill -9 PRCOCESS_ID

Observations for README betterment

  1. Folks may not immediately realize that running npm start & grunt serve spits out a PID which they can use to kill the server side of things. And that the rest of the logs are about the deployment and we start watching the client for changes.
    1. For the first few minutes, users may find themselves scratching their heads after hitting ctrl+c and trying the same step again ... as to why the port is occupied.
    2. Depending on the scroll buffer on one's terminal window, they may have already lost the PID or simply may not know to go looking for it.
    3. Maybe some commonly agreed upon language for the README that is way way shorter than the essay I just wrote here ... can be coined?
  2. Running grunt serve without installing nodemon first ... still kicks off the process regardless. Only this time there is no PID so it gets a bit arbitrary to go looking for a node process to kill. Now yes, the next thing one may do right away is npm install -g nodemon and then grunt serve again but the earlier command has taken up the port (which one assumes had just plain failed but such is not the case) and again users are briefly left wondering ... what???
    1. Umm, so maybe some language that says: even if grunt serve fails due to lack of nodemon, a process occupying the port has started and must be killed before using grunt serve again.

error when trying to run the application

Hi,
After following all the instructions from the installation steps, when going to the last line: npm start & grunt serve, I am getting some errors in the terminal, and although the page loads with the login, I can't do anything: login is not working, and I am stuck on the login page. There was a yellow error box on the login page with 401 error.
The errors in node I get:

events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:904:11)
at Server._listen2 (net.js:1042:14)
at listen (net.js:1064:10)
at net.js:1146:9
at dns.js:72:18
at process._tickCallback (node.js:419:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:906:3

npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "start"
npm ERR! node v0.10.33
npm ERR! npm v2.1.5
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node server/server.js
npm ERR! Exit status 8
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is most likely a problem with the loopback-angular-admin package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node server/server.js
npm ERR! You can get their info via:
npm ERR! npm owner ls loopback-angular-admin
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/lkasperczyk/repos/email-gen/loopback-angular-admin/npm-debug.log

I really like your idea of a starter kit for loopback + angular and would really like to use it to kickstart my new project. Can you please help?

Thanks,
Leszek

Layout from a fresh install appears broken

Doing a fresh clone (currently at commit 699d606), then npm install, followed by nodemon and grunt serve gives me a layout of a site that appears broken. See attached screenshots. What confuses me even more is that I've previously downloaded the repo (about two months ago) and everything looked nice like in the screenshots when I ran the same command. Am I doing something silly or is something broken?

screen shot 2015-06-16 at 21 29 01
screen shot 2015-06-16 at 21 29 20

Problem in Deploying on local machine

I am trying to run loopback-angular -admin on my laptop but when I start the project with command [slc run] then on browser the login page appears and it continuously blinks and console generates infinite number of errors in controllers and etc... below is a screen shot attached

screenshot 5

Grunt image filerev not updated in views

If you build the project under production mode, the html in dist/modules/**/views/ doesn't point to the renamed image files. This also applies to the country flags in the top nav.

acls

i chage acls in event.json file to:

{
"accessType": "",
"principalType": "ROLE",
"principalId": "$everyone",
"permission": "DENY"
},
{
"accessType": "
",
"principalType": "ROLE",
"principalId": "admin",
"permission": "ALLOW"
},
{
"accessType": "READ",
"principalType": "ROLE",
"principalId": "$authenticated",
"permission": "ALLOW"
}

after login http://localhost:3333/#/login with username and password
http://localhost:3333/#/app/events -> 0k.
http://localhost:3333/api/events ->

{"error":{"name":"Error","status":401,"message":"Authorization Required","statusCode":401,"code":"AUTHORIZATION_REQUIRED","stack":"Error: Authorization Required\n at C:\Users\VDP\Desktop\admin\node_modules\loopback\lib\application.js:344:21\n at C:\Users\VDP\Desktop\admin\node_modules\loopback\lib\model.js:295:5\n at C:\Users\VDP\Desktop\admin\node_modules\loopback\common\models\acl.js:437:23\n at C:\Users\VDP\Desktop\admin\node_modules\async\lib\async.js:254:17\n at done (C:\Users\VDP\Desktop\admin\node_modules\async\lib\async.js:135:19)\n at C:\Users\VDP\Desktop\admin\node_modules\async\lib\async.js:32:16\n at C:\Users\VDP\Desktop\admin\node_modules\async\lib\async.js:251:21\n at C:\Users\VDP\Desktop\admin\node_modules\async\lib\async.js:575:34\n at C:\Users\VDP\Desktop\admin\node_modules\loopback\common\models\acl.js:420:17\n at C:\Users\VDP\Desktop\admin\node_modules\loopback\common\models\role.js:207:21"}}

Error: ENOENT errno 34

hey there, i am exited about to install and i did everything like you discribed, test worked fine

Execution Time (2014-12-17 19:52:37 UTC)
jshint:all 576ms ▇ 3%
loopback_angular:services 2.2s ▇▇▇▇ 11%
docular 9.7s ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 47%
wiredep:app 320ms ▇ 2%
concurrent:dist 7.2s ▇▇▇▇▇▇▇▇▇▇▇▇▇ 35%

but
/loopback-angular-admin/server# npm start gave me an

npm ERR! Error: ENOENT, open '/root/loopback-angular-admin/server/package.json'
npm ERR! If you need help, you may report this entire log,
npm ERR! including the npm and node versions, at:
npm ERR! http://github.com/npm/npm/issues

npm ERR! System Linux 3.13.0-37-generic
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "run" "dev"
npm ERR! cwd /root/loopback-angular-admin/server
npm ERR! node -v v0.10.33
npm ERR! npm -v 1.4.28
npm ERR! path /root/loopback-angular-admin/server/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!

Thanks for your help and your awsome work ! 👍

User Register saves confirmpassword to the file (database)

Hi,
I have activated file system to view the data
{
"db": {
"name": "db",
"connector": "memory",
"file" : "db.json"
}
}

When I created a new user using the Register screen I noticed that the "confirmPassword" property of the form also gets persisted to the file. Also it is in the text format so I am pretty sure this shouldn't be present.

User access

Hi Beeman,

I'm trying to do the user having no access to other users profiles, specially admin's profile even him not having permissions to change, at this time he can list all users, how can I restrict his listing access to himself only?

Thank you for your help

Logout session is not working...

when i tried logout and pressed back button, i still have have access to previous session, it seems that session is not deleted...

Regards
Rama.

Dropdown for Category in Products

As shown in the image below, in Add/Edit Product form, the category field is a textbox asking for ID. It would be amazing if there was a way to provide a drop down there. I think of this issue as an enhancement. Being new to Node, and specially loopback, I will try my best to come up with a solution, but any suggestions would be advisable.

screen shot 2015-04-13 at 4 52 19 pm

Cross-origin errors

When following the install instructions on latest version, I ended up with cross-origin errors:
"XMLHttpRequest cannot load http://0.0.0.0:3000/api/settings. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:9000' is therefore not allowed access."

I think loopback 2.0 should have CORS enabled by default, so any ideas what might be the problem here?

ui-router loop forever

hi. If api is down, ui-router cause looping between "/login" and "/router".

client/app/modules/users/config/users.auth.js

if (rejection.status === 0) {
        $location.path('/');  // it cause loop forever
        CoreService.toastError('Connection Refused',
          'The connection to the API is refused. Please verify that the API is running!'
        );
}

Social connect

Hi,

I am trying to use the social connect feature with facebook but I am a bit stuck:
I have modified providers.json to leave only local facebook and I have fill the clientID & clientSecret fields. When I click on connect, I can see the redirection to facebook because at the beginning I got an invalid url error. After changing the website url in my facebook account to "http://localhost:3000/auth/facebook/callback", everything seems to work well except that I am still getting a 401 error so that I am stuck to the login page.
In the backend log, I can see that I am correctly logged in.
I guess it's a redirection issue. I don't know how to debug that because I don't know exactly the login process. Any help appreciated.

Thanks!

Error while installing on Ubuntu

Hey,
Thanks for the great work i am looking to integrate the project to my site but while installing it renders the error below

events.js:72
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE
at errnoException (net.js:905:11)
at Server._listen2 (net.js:1043:14)
at Server._listen2 (/home/wamburu/Documents/loopback-angular-admin/node_modules/loopback/node_modules/continuation-local-storage/node_modules/async-listener/index.js:71:23)
at listen (net.js:1065:10)
at net.js:1147:9
at dns.js:72:18
at process._tickDomainCallback (node.js:486:13)
at process. (/home/wamburu/Documents/loopback-angular-admin/node_modules/loopback/node_modules/continuation-local-storage/node_modules/async-listener/index.js:18:15)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)

Detect if API is online

Saw this in the TODOs, did some research ... realized I wasn't up to finishing the task ... thought it might be useful to jot down any notes, doubts and open questions semi-permanently. They get a bit lost in gitter.

  1. Should https://github.com/HubSpot/offline be written as an angular service and/or injected into app.run in a format that somewhat resembles: http://pterkildsen.com/2012/12/12/angularjs-tips-and-tricks-broadcast-online-and-offline-status/

  2. Searching on bower registry for an already angular wrapped version of HubSpot/offline turns up the very same repo as mentioned above but I don't believe its angular ready so not sure what's going on there. May be a lapse in my understanding of angular?

  3. This https://github.com/neoziro/angular-offline seems well rounded (README-wise) but I don't think it wraps the HubSpot library.

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.