TBH all I want are Django's generic views implemented in Go to make it easy to map routes to DB resources to speed up making APIs. Ideally it would automagically expose a whitelisted list of DB tables as API endpoints but allow the ability to override queries for each table and perform logic as necessary (i.e. support custom handlers as well as lightweight default ones). If anyone knows of anything like that please l…
sqlc.dev plus gongular and you have a quick REST api sqlc.dev plus gql-gen and you have a quick GraphQL server sqlc.dev plus goa.design and you have a full-featured REST + gRPC server with OpenAPI for easy client generation No need to write model code and validation for inputs/outputs. Just define your SQL queries and your request objects (or typedefs for GraphQL) and then let these tools generate everything else.
Pushup: a new compiler for making web apps in Go
81–90 of 121 posts
Re: Pushup: a new compiler for making web apps in Go
#82Pushup creator here. We're interested in feedback on the design. Pushup introduces a new lightweight template syntax that mixes Go code and HTML in the same page; pages are then compiled down to pure Go, relying on the net/http package. Pushup uses file-based routing, so adding a page adds a route to your app. The template language has an "inline partials" feature to make it easier support for modern hypermedia libra…
I’m Finnish. The caret is not always easy to type in my experience on international keyboards. Not sure what the added value is of creating yet another convention here, as there are so many already with each new templating language.
Re: Pushup: a new compiler for making web apps in Go
#83What does a Treeview look like - in a ".up" file, can I walk a tree (like io.fs.FS) ?
Can I compile a Pushup app into a giant WASM hairball and run the whole thing in the browser ?
Re: Pushup: a new compiler for making web apps in Go
#84This looks really promising — at first blush, I like this a lot more than normal Go templating! That said: maybe it's just my bias as someone who primarily works with React, but I'm wondering why not just mimic JSX, which has been incredibly successful and has millions of people who already understand it. The big missing piece to me here is composability. How can I encapsulate reusable bits of markup, styles and pres…
Re: Pushup: a new compiler for making web apps in Go
#85When it comes to traditional web frameworks, the most important part is handling regular HTML forms. Reason being, a form is the only native mechanism your customers have to use to interact with your service. Forms are important. Specifically, validation and error handling. I think Laravel does it really well. It's been a while, but Laravel has a wrapper around HTML forms. This wrapper does everything you need: serve…
Re: Pushup: a new compiler for making web apps in Go
#86Earlier quoted context omitted.
sqlc.dev plus gongular and you have a quick REST api sqlc.dev plus gql-gen and you have a quick GraphQL server sqlc.dev plus goa.design and you have a full-featured REST + gRPC server with OpenAPI for easy client generation No need to write model code and validation for inputs/outputs. Just define your SQL queries and your request objects (or typedefs for GraphQL) and then let these tools generate everything else.
You've piqued my interest. Do you know of any OSS repos that implement any of these?
Re: Pushup: a new compiler for making web apps in Go
#87Earlier quoted context omitted.
> So basically PHP, but in Go? You say that like it's a bad thing ;^)
Then why not instead of the random ^ soup?
Re: Pushup: a new compiler for making web apps in Go
#88When it comes to traditional web frameworks, the most important part is handling regular HTML forms. Reason being, a form is the only native mechanism your customers have to use to interact with your service. Forms are important. Specifically, validation and error handling. I think Laravel does it really well. It's been a while, but Laravel has a wrapper around HTML forms. This wrapper does everything you need: serve…
Re: Pushup: a new compiler for making web apps in Go
#89Re: Pushup: a new compiler for making web apps in Go
#90Earlier quoted context omitted.
Then why not instead of the random ^ soup?
Please, no. Let's not intermix code fragments with html elements. Have you witnessed the nightmare of reading and updating JSTL, for example?
Anyway, my original comment was a take on “PHP but for Go”, and only half serious. I don’t see myself using the product discussed here. I hear the people who say “I disable JavaScript” but frankly I always write my apps so that the frontend part communicates with the backend via JSON API. I’m not a frontend dev…