Project

ngcrud

0.0
No release in over a year
A rails-like Angular CRUD Generator
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 4.0.2
 Project Readme

NGCRUD Ruby Gem

Description

NGCRUD is a Ruby gem designed to simplify Angular code generation in the command-line interface (CLI), similar to the functionality provided by Rails for Ruby on Rails applications. With NGCRUD, you can effortlessly scaffold Angular components based on your defined models, streamlining the development of Angular applications.

This gem is currently in its early stage of development. While I have made efforts to ensure its functionality, it may contain bugs, limitations, or incomplete features. I'm actively working to improve and enhance its performance and functionality.

Requirements

The code generated by this gem requires an installation of Angular, ngx-toastr and the following Angular Firestore modules:

  • AngularFirestore
  • AngularFirestoreCollection
  • AngularFirestoreDocument

Installation

To install NGCRUD, use RubyGems:

gem install ngcrud

Use

Suppose you want to generate Angular code for a "Contacts" model with the following attributes:

  • name (string)
  • telephone (string)
  • birth_date (date)
  • active (boolean)
ngcrud Contacts name:string telephone:string birth_date:date active:boolean email_marketing:boolean

This will generate inside src/app/features/contacts the following files and code:

  • contact.ts - Resource interface typescript
  • contacts.service.ts - The service
  • /contacts-create/contacts-create.component.html
  • /contacts-create/contacts-create.component.ts
  • /contacts-list/contacts-list.component.html
  • /contacts-list/contacts-list.component.ts

License

NGCRUD is released under the MIT License.

Contact

If you have any questions or feedback, feel free to contact me mdorozcog@gmail.com

Happy coding!