TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Best front end framework for a back end engineer?

6 pointsby nzachover 3 years ago
I&#x27;m working in a side project and now I&#x27;m getting to the point where I need some sort of interface that doesn&#x27;t includes &#x27;curl&#x27; and &#x27;jq&#x27;.<p>I do have some experience with Angular 2+ but I think it is too much for what I need right now. Besides that I&#x27;ll probably end up trowing away this first version anyways.<p>Right now all I need is some way to fetch data from an API and display these items to the user interact with.<p>Given that what do you think is the easiest way to create a web interface for a simple API? The API is written in Golang.

3 comments

silbover 3 years ago
One step up from &#x27;curl&#x27; and &#x27;jq&#x27; is to only target modern browsers supporting Javascript ES6.<p>Just create a static HTML file and a script loaded as an ES6 module.<p>Use the Fetch API for obtaining data from your API. Obtain DOM elements using &#x27;document.querySelector()&#x27;. Update the DOM using Javascript template literals (strings) and the &#x27;Element.innerHTML&#x27; attribute.<p>For forms, just do a server side redirect after POST or respond with HTTP 201 or 204. Alternatively, add a Javascript submit event listener to the form and do the HTTP POST using a &#x27;FormData&#x27; object and the Fetch API.<p>For authorization, either a catch all HTTP Basic Auth in the web server or a HTML login form to your API responding with a session cookie and a redirect.
dustinchilsonover 3 years ago
I&#x27;ve been a fan of Blazor coming from the dotnet&#x2F;C# world.<p><a href="https:&#x2F;&#x2F;dotnet.microsoft.com&#x2F;apps&#x2F;aspnet&#x2F;web-apps&#x2F;blazor" rel="nofollow">https:&#x2F;&#x2F;dotnet.microsoft.com&#x2F;apps&#x2F;aspnet&#x2F;web-apps&#x2F;blazor</a><p><a href="https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;aspnet&#x2F;core&#x2F;blazor&#x2F;?WT.mc_id=dotnet-35129-website&amp;view=aspnetcore-6.0#blazor-webassembly" rel="nofollow">https:&#x2F;&#x2F;docs.microsoft.com&#x2F;en-us&#x2F;aspnet&#x2F;core&#x2F;blazor&#x2F;?WT.mc_i...</a>
snisarenkoover 3 years ago
I am working on a platform that might suit the problem you described<p><a href="http:&#x2F;&#x2F;widgetterminal.com" rel="nofollow">http:&#x2F;&#x2F;widgetterminal.com</a><p>Feel free to reach out directly to me if you want early access &#x2F; demo (contact info in profile)