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

The new project was generated with a server but has no graphql or rest layer #155

Open
maikvortx opened this issue Aug 18, 2022 · 4 comments
Labels
bug Something isn't working hacktoberfest

Comments

@maikvortx
Copy link

Describe the bug

I have created a new project without rest/graphql layer, but the project has been created with a server.start in index file.

To Reproduce
Steps to reproduce the behavior:

  1. herbs new
  2. graphql layer: no
  3. rest layer: no

Expected behavior

Create a new project without configurations for a api.

Screenshots

image

@maikvortx maikvortx added the bug Something isn't working label Aug 18, 2022
@jhomarolo
Copy link
Contributor

jhomarolo commented Aug 21, 2022

Duplicate with #141

@dalssoft
Copy link
Member

dalssoft commented Sep 4, 2022

@jhomarolo I don't think it is duplicated since #141 is a feature and what @maikvortx reports is a bug.

for now, I think that if user chooses "No" for REST, then it should be "Yes" as default for GraphQL, with no option to change. In other words, the project should have at least one transport layer.

in the future we could discuss what would be alternatives for it.

@italojs
Copy link
Member

italojs commented Oct 5, 2022

I don't think so, I could want to generate a console application and don't have rest either graphql layers.
For me, we solve it by creating a console layer option or just creating nothing, so the developer could use the herbs2rpl on the domain layer.

@maikvortx
Copy link
Author

I agree with @italojs! We can generate a project to interact with herbs2rpl.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working hacktoberfest
Projects
None yet
Development

No branches or pull requests

4 participants