Skip to content

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

Description

@maikvortx

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

Activity

  1. jhomarolo commented on Aug 21, 2022

    @jhomarolo
    Contributor

    Duplicate with #141

  2. dalssoft commented on Sep 4, 2022

    @dalssoft
    Member

    @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.

  3. italojs commented on Oct 5, 2022

    @italojs
    Member

    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.

  4. maikvortx commented on Oct 5, 2022

    @maikvortx
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions