GithubHelp home page GithubHelp logo

Comments (9)

nmrgt avatar nmrgt commented on July 19, 2024 1

Hi,

There is a repository with a Porto generator - still in development. I'm quite busy right now so I havenโ€™t finish but if you want to contribute I would be happy to work with you.

For the CrudGenerator, I think it'll be useful for the admin container. What are the packages used to develop it ?

from apiato.

Mahmoudz avatar Mahmoudz commented on July 19, 2024 1

@llstarscreamll and @nmrgt thanks you for your interest in helping to make this project great.

@llstarscreamll that sounds great, and I do encourage you to start sharing your code :) I'd like to see that template layout system, contribute that to a separate branch to check it and test it.. Not sure about the Angular app, but if it's a simple demo that shows some of the features of Hello API by integrating with it. It might be cool idea, but this needs a separate repo, I'll create one and share it with you.

Regarding the Generator and its Web GUI, @nmrgt made a great contribution there, but it needs to be completed, so if you'd like to check it out and finish it, it would be awesome and I think @nmrgt will be able to help you get started...

Best,

from apiato.

Mahmoudz avatar Mahmoudz commented on July 19, 2024 1

@llstarscreamll looks so exciting.

Also, stay tuned I just started upgrading to L5.4 should be available today or tomorrow.

from apiato.

llstarscreamll avatar llstarscreamll commented on July 19, 2024

Thank you guys!!

@nmrgt I'm busy now too, I would like to make things done to continue with my work, since I will build a new project based on Hello-API soon... so the CrudGenerator would be a nice feature for fast development. So, how I can help you? Where to start?

To clarify, Porto Generator and CrudGenerator are the same thing? or not? I intend to generate a Porto Container with CrudGenerator having the basic functionalities like tests, controllers, views, models, etc... As I can see, your generator will build this stuff too... We should stick with one package only or have both? I turned public the repo, the readme file is in spanish, but the important section is the generated files/classes:

- Ads routes to `routes/web.php`
- Controller
- Model
- Model repo contract and implementation
- Seeders
- Models Factories
- Search Criteria
- Service class
- Spanish language file
- Views:
    - partials/
        - form-scripts
        - form-assets
        - heading
        - index-assets
        - index-buttons
        - form-fields
        - hidden-form-fields
        - index-create-form
        - index-table
        - index-table-header
        - index-table-search
        - index-table-body
    - index
    - create
    - show
    - edit
- Codeception functional Tests, each test with his own pageObject and tag group if needed:
    - Index, here are some tests for data restore if the entity has `deleted_at` attribute
    - Create
    - Edit
    - Show
    - Destroy
    - Permissions

Offcorss, the code generated is for a standard Laravel app with Codeception configured... it needs a lot of refactor and the generated code use abstract classes, language files and some helpers from a "CoreModule". You can check the generated code in tests/_data folder.

Here are some screenshots from the views generated:
kazam_screenshot_00012

kazam_screenshot_00015

kazam_screenshot_00014

from apiato.

llstarscreamll avatar llstarscreamll commented on July 19, 2024

@Mahmoudz I will be start with the basic layout, I'm not a designer, so we should use some existing dashboard theme, maybe AdminLTE or standard Bootstrap?

from apiato.

Mahmoudz avatar Mahmoudz commented on July 19, 2024

@llstarscreamll I just wanna make sure I understand you correctly, is that the workflow in your mind:

  1. user opens the generator GUI App and see an interface similar to the one above.
  2. user fill some details about his container, like: need model Car and model Bike, with basic CRUD endpoints, and properties (colour, speed, id)...
  3. the GUI execute commands in the CLI or directly call functions on the generator core itself, to generate the container, based on the user input.
  4. generator create a folder with model, repo, UI, basic request, CRUS tasks and Actions,......
  5. the user can modify the container anyway he wants to add his custom business logic after being generated.

For the interface doesn't matter which template you use, anything you are familiar with should be good for this job.

from apiato.

llstarscreamll avatar llstarscreamll commented on July 19, 2024

Yes, all right @Mahmoudz. The above is the generated views and this is the CRUD form setup:
kazam_screenshot_00016

from apiato.

nmrgt avatar nmrgt commented on July 19, 2024

@llstarscreamll Thanks for sharing this ! Can you look on the container generator repository ? I can explain the approach I choose for the generator (by the way, we maybe can continue this discussion in this repo).

I started to build a GUI with Vuejs but you can start a new one from scratch with angular. The main idea is that the generator serve some JSON shema and the Gui build a form generated from the JSON schema and send it to the controller (or you can download it and use CLI to generate).

At the moment, the generator works (we just need to write file instead of printing them on console output from CLI) and I think I made some modifications but didn't push them to the repo, let me check. If needed, we can skype or whatsapp (I'm in Paris (France), so maybe in the morning for you will be simpler for me).

Edit : Actually, I had made few changes, I just made a quick push on the repo :)

from apiato.

llstarscreamll avatar llstarscreamll commented on July 19, 2024

@nmrgt great!! I will check the repo, see you there!!

from apiato.

Related Issues (20)

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.