Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli/add service generation #256

Merged
merged 8 commits into from
Dec 17, 2024
Merged

Cli/add service generation #256

merged 8 commits into from
Dec 17, 2024

Conversation

rizerkrof
Copy link
Collaborator

I added on the fuego controller cli command a flag (--with-service) to generate a simple in memory map based service that satisfies the controller service interface.

The generated service can be pass into the controller resources to have a fully functional CRUD.

@rizerkrof rizerkrof requested a review from EwenQuim December 7, 2024 12:31
Copy link
Member

@EwenQuim EwenQuim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much for this PR, it'll greatly help new Fuego users try the framework !

Next step, a proposal for using SQL 😉 I'm joking, this can be a real challenge and there are so many different ways of implementing SQL...

A few minor changes need to be addressed in order to ensure the maintainability of this feature, even if there is no doubt that you made it work nicely.

cmd/fuego/templates/controller/service.go Outdated Show resolved Hide resolved
cmd/fuego/commands/controller.go Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
documentation/docs/tutorials/02-crud.md Show resolved Hide resolved
cmd/fuego/templates/controller/service.go Outdated Show resolved Hide resolved
@EwenQuim
Copy link
Member

EwenQuim commented Dec 9, 2024

Btw fixes #256

@rizerkrof rizerkrof force-pushed the cli/add-service-generation branch from 90839c4 to 1548948 Compare December 16, 2024 23:40
@rizerkrof rizerkrof force-pushed the cli/add-service-generation branch from 1548948 to 5d13e87 Compare December 16, 2024 23:49
Copy link
Member

@EwenQuim EwenQuim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@rizerkrof rizerkrof merged commit b2b0f4f into main Dec 17, 2024
7 checks passed
@rizerkrof rizerkrof deleted the cli/add-service-generation branch December 17, 2024 20:05
@EwenQuim EwenQuim mentioned this pull request Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants