Comments (9)
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.
@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.
@llstarscreamll looks so exciting.
Also, stay tuned I just started upgrading to L5.4 should be available today or tomorrow.
from apiato.
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:
from apiato.
@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.
@llstarscreamll I just wanna make sure I understand you correctly, is that the workflow in your mind:
- user opens the generator GUI App and see an interface similar to the one above.
- user fill some details about his container, like: need model Car and model Bike, with basic CRUD endpoints, and properties (colour, speed, id)...
- 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.
- generator create a folder with model, repo, UI, basic request, CRUS tasks and Actions,......
- 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.
Yes, all right @Mahmoudz. The above is the generated views and this is the CRUD form setup:
from apiato.
@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.
@nmrgt great!! I will check the repo, see you there!!
from apiato.
Related Issues (20)
- Composer require problem with requirements
- Installing on cPanel HOT 1
- Search is not working in RequestCriteria HOT 2
- Laravel Passport PKCE HOT 2
- microservice projects HOT 2
- Add Laravel 10 support HOT 6
- Swagger Generator HOT 2
- Your requirements could not be resolved to an installable set of packages
- how to handle relationship HOT 3
- UUID , instead of Hashed Id
- Hash ids error when using "in" operator HOT 2
- Cli generator does not support `criteria` currently
- Why i am getting "Welcome to Apiato" message even after specifying route end point HOT 1
- apiato:apidoc command throw ProcessFailedException Error HOT 9
- API Test Error: "The requested Resource was not found." HOT 5
- Custom Model primaryKey not working! HOT 2
- Installation Error via Composer
- No hint path defined for [mail] HOT 1
- Invalid key supplied HOT 2
- Repository delete() ModelNotFoundException is never thrown
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apiato.