johannesjo / generator-angular-auto-admin-loopback Goto Github PK
View Code? Open in Web Editor NEWGenerator for automatic CRUD angular backend for loopback apps and apis
License: MIT License
Generator for automatic CRUD angular backend for loopback apps and apis
License: MIT License
Hi,
I was trying to use this today however when executing "yo aaal" the below TypeError is raised:
/usr/lib/node_modules/generator-aaal/app/index.js:13
module.exports = yeoman.Base.extend({
^
TypeError: Cannot read property 'extend' of undefined
at Object.<anonymous> (/usr/lib/node_modules/generator-aaal/app/index.js:13:29)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.get [as aaal:app] (/usr/lib/node_modules/yo/node_modules/yeoman-environment/lib/store.js:40:23)
at Store.get (/usr/lib/node_modules/yo/node_modules/yeoman-environment/lib/store.js:64:35)
would you like to take a screenshot or have a demo url ready?
Hi !
I'm trying to use generator angular auto admin loopback and everything works fine when I install it with a loopback:model on memory but it doesn't work when I'm using a loopback:model on my mysql db.
The loopback explorer gets the data from the mysql db successfully. But I got this issue when I do this command :
yo aaal
The script can't finish. It displays this on my prompt :
.... injecting state into app/scripts/aaal/aaal-routes.js updating aaal-routes.js Chargement de l'application LoopBack "/Users/xxxx/NodeProjects/strongloop/crud-loop/server/server.js" Génération de "lbServices" pour le noeud final d'API "/api" Warning: scope User.accessTokens targets class "AccessToken", which is not exposed via remoting. The Angular code for this scope won't be generated. Sauvegarde de la source des services générés vers "/Users/xxxx/NodeProjects/strongloop/crud-loop/client/app/scripts/aaal/global-services/lb-services-s.js"
I've tried again with a fresh install. If I don't use a loopback model connected to mysql, I have no issue. The script finished well displaying the same prompt message
injecting state into app/scripts/aaal/aaal-routes.js updating aaal-routes.js Chargement de l'application LoopBack "/Users/xxxx/NodeProjects/strongloop/crud-loop/server/server.js" Génération de "lbServices" pour le noeud final d'API "/api" Warning: scope User.accessTokens targets class "AccessToken", which is not exposed via remoting. The Angular code for this scope won't be generated. Sauvegarde de la source des services générés vers "/Users/xxxx/NodeProjects/strongloop/crud-loop/client/app/scripts/aaal/global-services/lb-services-s.js"
The script can't finished after I have done this :
slc loopback:datasource mydatabase
I would be very thankful if you can help me.
Best regards
When attempting to login I'm getting the following error after following the readme.md
https://docs.angularjs.org/error/$injector:unpr?p0=UserProvider%20%3C-%20User%20%3C-%20Auth
just tried the code installation and i got erroraddressnotavailable
, can you point out the issue?
Possibly unhandled rejection: {"data":"Error: connect EADDRNOTAVAIL 127.0.0.1:3000 - Local (127.0.0.1:0)<br> at Object.exports._errnoException (util.js:1026:11)<br> at exports._exceptionWithHostPort (util.js:1049:20)<br> at connect (net.js:879:16)<br> at net.js:1008:7<br> at GetAddrInfoReqWrap.asyncCallback [as callback] (dns.js:62:16)<br> at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:81:10)\n","status":500,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","url":"/api/Users/login","data":{"email":"[email protected]","password":"opensesame"},"params":{"include":"user","rememberMe":true},"headers":{"Accept":"application/json, text/plain, */*","Content-Type":"application/json;charset=utf-8"}},"statusText":"Internal Server Error"}
I installed the package via npm but those two files are missing. If I manually add locally the package works with no further problems.
Hello, I'm trying to run the command 'yo aaal' and I get an error Error: ENOENT: no such file or directory, scandir 'D:\Git\common\models'. My common path is 'D:\Git\teste\common\models' how can I set my correct path?
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.