Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Brent Walsh
    @bswalsh247
    Dr. Worm! What up?!
    Tony Worm
    @verdverm
    Rahul Thakoor
    @rahul-thakoor
    hello
    is this the right place to ask for help using hof+cuelang?
    Tony Worm
    @verdverm
    yes, I switched machines and haven't had this open in some time
    Rahul Thakoor
    @rahul-thakoor
    cool. thanks

    I'm trying to use hof in a similar way to https://openapi-generator.tech/

    But, instead of using OpenAPI as the IDL, i want to use Cuelang as the IDL to define a "contract" then use different templates to generate client sdks, server stubs, documentation and example code etc

    seems like hof is the right tool for that?

    Tony Worm
    @verdverm
    Yeah, I definitely use it for that
    Going to be doing it again here soon too, so now is a good time
    Have you found the examples in the repo? There are not any specific to a full-stack application, but you can see how things get organized.
    I'll be working on the full-stack generators next (starting in a week or two) for a GraphQL stack. Probably React, Apollo, NodeJS, PostgreSQL.
    Rahul Thakoor
    @rahul-thakoor

    thanks, looking forward to the docs

    I am quite new to cue and hof. I think a basic example on how to generate an output using a cue schema would be helpful

    Tony Worm
    @verdverm
    Sure, I have a one file example(s) that shows how to do just about everything. I can clean them up this weekend and post them here. Will be interested to hear if they are enough to get you going or if you will need more. I can make some time to iterate on them if you provide feedback. They are for you after all !!!
    Rahul Thakoor
    @rahul-thakoor
    that would be great! thanks
    neil-one
    @neil-one
    Tony Worm
    @verdverm
    @neil-one Not currently, more focused on the open source pieces!
    Tony Worm
    @verdverm
    This message was deleted
    anarcher
    @anarcher_twitter
    Hi, I think that hof has a plan to run commands in _tool.cue. How do you do for it? cue pkg/tool is unexpored/internal
    1 reply
    cmd/hof/cmd/cmd.go
    thanks :-)
    Tony Worm
    @verdverm
    hof has plans for an alternative called HLS. hof also plans to embed most of the cue cli. I think what you are looking for is cue cmd
    Tony Worm
    @verdverm
    New DSL for creating structs: https://github.com/hofstadter-io/hofmod-struct
    Tony Worm
    @verdverm
    Sub-generators have been implemented in hof. This enables you to use other generators from your generators.
    You can see this at work in hofmod-server/gen/
    https://github.com/hofstadter-io/hofmod-server is the main focus for this month, with https://github.com/hofstadter-io/_saas becoming the advanced example.
    Tony Worm
    @verdverm

    NOTICE:

    We are moving chat to Slack