My GitHub Stats
gorums / generator-angular-2-crud Goto Github PK
View Code? Open in Web Editor NEWThis app generate a CRUD for Angular2
Home Page: https://www.atomicg.dev/
License: Other
This app generate a CRUD for Angular2
Home Page: https://www.atomicg.dev/
License: Other
add support for relations Many-To-Many
{
"Users": {
"Id": { "key": "true"},
...
"CityId": { "referent": "Cities", "render": "name"},
"CountryId": { "referent": "Countries", "render": "name"}
}
I am not able to generate CRUD Application.
I follow all steps but unable to create
For the boolean type
[at-loader] Checking finished with 75 errors
[at-loader] node_modules/@angular/core/src/facade/lang.d.ts:12:17
'Map' only refers to a type, but is being used as a value here.
[at-loader] node_modules/@angular/core/src/facade/lang.d.ts:13:17
'Set' only refers to a type, but is being used as a value here.
[at-loader] node_modules/@types/core-js/index.d.ts:47:36
Cannot find name 'Iterable'.
[at-loader] node_modules/@types/core-js/index.d.ts:355:48
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:356:52
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:357:34
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:358:34
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:359:34
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:360:61
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:361:60
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:362:65
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:362:97
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:363:60
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:364:58
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:365:59
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:366:58
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:367:61
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:367:117
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:368:42
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:370:81
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:371:78
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:372:76
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:373:73
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:436:6
Cannot find name 'Symbol'.
[at-loader] node_modules/@types/core-js/index.d.ts:469:59
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:470:59
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:472:48
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:473:69
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:477:40
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:479:48
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:695:55
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:696:45
Cannot find name 'PropertyKey'.
[at-loader] node_modules/@types/core-js/index.d.ts:712:46
Cannot find name 'Iterable'.
[at-loader] node_modules/@types/core-js/index.d.ts:713:43
Cannot find name 'Iterable'.
[at-loader] node_modules/@types/core-js/index.d.ts:829:20
Cannot find name 'PromiseConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:844:32
Cannot find name 'Iterable'.
[at-loader] node_modules/@types/core-js/index.d.ts:848:39
Cannot find name 'Iterable'.
[at-loader] node_modules/@types/core-js/index.d.ts:848:53
Cannot find name 'Iterator'.
[at-loader] node_modules/@types/core-js/index.d.ts:1486:36
Property 'for' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1490:43
Property 'hasInstance' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1494:50
Property 'isConcatSpreadable' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1498:40
Property 'iterator' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1502:38
Property 'keyFor' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1506:37
Property 'match' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1510:39
Property 'replace' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1514:38
Property 'search' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1518:39
Property 'species' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1522:37
Property 'split' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1526:43
Property 'toPrimitive' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1530:43
Property 'toStringTag' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:1534:43
Property 'unscopables' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2305:36
Property 'for' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2309:43
Property 'hasInstance' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2313:50
Property 'isConcatSpreadable' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2317:40
Property 'iterator' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2321:38
Property 'keyFor' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2325:37
Property 'match' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2329:39
Property 'replace' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2333:38
Property 'search' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2337:39
Property 'species' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2341:37
Property 'split' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2345:43
Property 'toPrimitive' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2349:43
Property 'toStringTag' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/@types/core-js/index.d.ts:2353:43
Property 'unscopables' does not exist on type 'SymbolConstructor'.
[at-loader] node_modules/rxjs/Observable.d.ts:68:60
'Promise' only refers to a type, but is being used as a value here.
[at-loader] node_modules/rxjs/Subject.d.ts:16:22
Class 'Subject' incorrectly extends base class 'Observable'.
Types of property 'lift' are incompatible.
Type '(operator: Operator<T, R>) => Observable' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'Observable' is not assignable to type 'Observable'.
Type 'T' is not assignable to type 'R'.
[at-loader] node_modules/rxjs/observable/dom/WebSocketSubject.d.ts:23:22
Class 'WebSocketSubject' incorrectly extends base class 'AnonymousSubject'.
Types of property 'lift' are incompatible.
Type '(operator: Operator<T, R>) => WebSocketSubject' is not assignable to type '(operator: Operator<T, R>) => Observable'.
Type 'WebSocketSubject' is not assignable to type 'Observable'.
Types of property 'operator' are incompatible.
Type 'Operator<any, R>' is not assignable to type 'Operator<any, T>'.
Type 'R' is not assignable to type 'T'.
[at-loader] node_modules/rxjs/operator/toPromise.d.ts:3:79
'Promise' only refers to a type, but is being used as a value here.
[at-loader] src/app/containers/patients.ts:103:25
Property 'find' does not exist on type 'DoctorsModel[]'.
[at-loader] src/app/store/helper.ts:10:32
Property 'assign' does not exist on type 'ObjectConstructor'.
[at-loader] src/app/store/helper.ts:16:32
Property 'assign' does not exist on type 'ObjectConstructor'.
[at-loader] src/app/store/helper.ts:23:32
Property 'assign' does not exist on type 'ObjectConstructor'.
[at-loader] src/app/store/helper.ts:29:32
Property 'assign' does not exist on type 'ObjectConstructor'.
[at-loader] src/app/store/index.ts:52:21
Property 'assign' does not exist on type 'ObjectConstructor'.
[at-loader] src/app/store/index.ts:60:21
Property 'assign' does not exist on type 'ObjectConstructor'.
We have to format te ejs template without affect the generator code
DESCRIPTION
error when running generator to implement server
repetable
ENVIRONNEMENT
node --version
v6.11.1
npm --version
3.10.10
yo --version
2.0.0
OUTPUT
yo angular-2-crud:server
C:\Users\cdena\AppData\Roaming\npm\node_modules\generator-angular-2-crud\generators\server\index.js:9
module.exports = Generator.extend({
^
TypeError: Generator.extend is not a function
at Object. (C:\Users\cdena\AppData\Roaming\npm\node_modules\generator-angular-2-crud\generators\server\index.js:9:28)
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 angular-2-crud:server] (C:\Users\cdena\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\store.js:38:27)
at Store.get (C:\Users\cdena\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\store.js:61:39)
Hello,
On the following config on windows 10 :
node v6.10.3
npm -v 4.5.0
I follow the intallation instructions, the generator is installed but yo cannot find it.
NODE_PATH id setup, I have no problem with other generators.
I noticed there is no "app" folder in the generator-angular-2-crud node module
`
yo angular-2-crud
Error angular-2-crud
You don’t seem to have a generator with the name “angular-2-crud” installed.
But help is on the way:
You can see available generators via npm search yeoman-generator or via http://yeoman.io/generators/.
Install them with npm install generator-angular-2-crud.
To see all your installed generators run yo without any arguments. Adding the --help option will also show subgenerators.
If yo cannot find the generator, run yo doctor to troubleshoot your system.
`
We have to validate a data model format and restrictions
work on loopback model?
add support for relations One-to-One
I get a list of items, then press "New Item" button. The item is created in place as the first element in the UI. If i then edit it, the form data is sent to the server and a response comes back, but the data in the UI is not updated. If i try to edit an item which had already existed, then all works ok..
For descriptions fields
Improve the dashboard crud
Do I have to create an empty bower.json file?
Haven't looked at the code yet, but would it be possible to use JSON Schema for the data model?
Thx.
I have this object at the DataModel.
"Car": {
"id": { "key": "true" },
"ip": { "type": "string", "require": "true" },
"name": { "type": "string", "require": "true" },
"location": {
"latitude": "number",
"longitude": "number"
},
"model": "string",
"brand": "string"
}
The problem is at the "location" object. This gives me at the Typescrypt model:
export interface CarModel {
id : string;
ip : string;
name : string;
location ? : [object Object];
model ? : string;
brand ? : string;
}
the "[object Object]" part is giving me this error at npm start:
[at-loader] src/app/models/car.ts:5:25
',' expected.
how can I solve it?
Generate a mock nodeJs server to test your Angular 2 CRUD
This is building over linux/ubuntu, we have to generate the CRUD over Windows and MacOS and run the project.
The key always is going to handle like string you do not have to specifies the type in the dataModel
Add pagination
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.