<p>Hello. I'm looking for good JS framework/library to create front-end, while all backend will use GO. Which one is the best to cooperate with GO? I'm tired of using pure JS with jQuery, so i'm looking forward something new ;)
Thanks.</p>
<hr/>**评论:**<br/><br/>matcornic: <pre><p>Hi,</p>
<p>As long as you create a nice REST API (using Echo, Gin, or pure Go), you can use any front end framework.</p>
<p>Modern/Hypes ones are React/Angular/Vue. Those are really nice but my personal preference goes to React (With Redux)</p></pre>kerakk19: <pre><p>Do you have any experience with MeteorJS? It looks very nice and drew my attention. I'll definitely look into React too. Thanks</p></pre>matcornic: <pre><p>I know enough to say that Meteor is a full stack framework, allowing developers to use same langage (Javascript) and codebase for back-end and front-end. It stores data in a Mongo database, synchronized in frontend with a minimongo. This way, you can code the data saving in front-end, in a <a href="https://en.wikipedia.org/wiki/Reactive_programming" rel="nofollow">reactive</a> way, and it will be synchronized to the backend afterwards. </p>
<p>It's a nice choice if you want an all-in-one package, but not the right one if you wanted to create your backend in Go.</p>
<p>Besides, I'm not a Meteor expert at all, but it's fairly possible that this kind of application is not easily scalable. </p></pre>caseynashvegas: <pre><p>React would get my vote. UI done the right way, and the skills you learn in React are transferrable to a number of platforms. One thing that people miss about React is that it is not tied to the browser. React & ReactDOM (browser) are separated.<br/>
This means you can use the core React library in a number of places including React-Native (ios/android), React Native - Windows (Windows 10 UWP) and ReactVR (Oculus). </p>
<p>For years, most UI development was done as manipulations through a set of imperative API's. React is different in that it let's you focus on representing what the UI spec should be as application state changes. To me, the benefit is that most of my UI code is pure functions with no side effect. </p></pre>zxo0oxz: <pre><p>I like Vue. It was pretty easy to learn, and the vue-resource plugin makes doing rest calls super easy. I'm sure any of the other recommendations here are fine too.</p></pre>spays_marine: <pre><p>Another vote for Vue here, though they actually recommend axios for making requests now.</p></pre>zxo0oxz: <pre><p>I'll have to check it out. I just know vue-resource worked for me, but it's so simple, it can't be hard to replace if there's something better.</p>
<p>edit: oh nice the api is pretty much the same</p></pre>twek: <pre><p>As someone who hates front end design I like Vue. I like that it doesn't feel heavy</p></pre>shovelpost: <pre><p>My recommendation is to stay native and use Web Components. A great library to help with creating them is <a href="https://www.polymer-project.org/" rel="nofollow">Polymer</a>. </p>
<p>I think Polymer is very close to the mantra of Go as it is a library (not a framework). It attempts to use web standards everywhere and become smaller and smaller as browsers implement more of the specs. The idea is to stay native to the browser and use the platform as much as possible.</p>
<p>The tooling is also great as they have created a command line tool that includes building, linting and testing so everything is pretty much streamlined like when you are working with the Go tool. There's also official plugins for vscode and Atom that provide you autocomplete, viewing docs and jumping to definitions.</p>
<p>Recent success story: <a href="https://twitter.com/AJStacy06/status/857628546507968512" rel="nofollow">All McDonald's menus in US are made with Polymer.</a></p>
<p>Recent talk from Google IO 2017: <a href="https://www.youtube.com/watch?v=cuoZenpQveQ" rel="nofollow">https://www.youtube.com/watch?v=cuoZenpQveQ</a></p></pre>video_descriptionbot: <pre><table><thead>
<tr>
<th align="left">SECTION</th>
<th align="left">CONTENT</th>
</tr>
</thead><tbody>
<tr>
<td align="left">Title</td>
<td align="left">Future, Faster: Unlock the Power of Web Components with Polymer (Google I/O '17)</td>
</tr>
<tr>
<td align="left">Description</td>
<td align="left">It took a few years and a couple of trips around the block, but Web Components have truly arrived: they’re natively supported in Chrome and Safari today, with other browsers joining the party soon. Polymer is still the most popular way to build your own Web Components. Polymer 2.0 has been updated to the final v1 Web Components specs, getting leaner, faster and more modular along the way – and offering a seamless upgrade path from Polymer 1. In this session, you will learn how Web Components and...</td>
</tr>
<tr>
<td align="left">Length</td>
<td align="left">0:43:04</td>
</tr>
</tbody></table>
<hr/>
<p><sup>I am a bot, this is an auto-generated reply | </sup><sup><a href="https://www.reddit.com/u/video_descriptionbot" rel="nofollow">Info</a></sup> <sup>|</sup> <sup><a href="https://www.reddit.com/message/compose/?to=video_descriptionbot&subject=Feedback" rel="nofollow">Feedback</a></sup> <sup>|</sup> <sup>Reply STOP to opt out permanently</sup></p></pre>kerakk19: <pre><p>It looks awesome, looks like i'll stick to Polymer for now. Great thanks!</p></pre>luckyleprechaun98: <pre><p>I recommend React. It's the new hotness so it looks good on a resume and besides that it is actually pretty useful. </p></pre>darkmagician2: <pre><p>Definitely Polymer. Web components are the future and all major browsers have pledged support. Many large companies use Polymer and Google has shown huge commitment to it by using it for their new YouTube and Google Earth. <a href="https://www.polymer-project.org" rel="nofollow">https://www.polymer-project.org</a></p></pre>kerakk19: <pre><p>Great, thanks!</p></pre>j_d_q: <pre><p>React react react as others have mentioned for the front end. It's not just the library but how it forces you to think about data. It's a great paradigm</p>
<p>Back end: standard lib, gorilla, echo or gin. As long as it's not Iris</p></pre>francoishill: <pre><p>Aurelia is amazing and far better than Angular and very modular: <a href="http://aurelia.io" rel="nofollow">http://aurelia.io</a></p></pre>kerakk19: <pre><p>Thanks, i'll definitely check it! Do you have any experience with it? I'm about to create shop template with CMS, can i do it with Aurelia while having no experience with it?</p></pre>francoishill: <pre><p>I have written a number of apps with backend API's with it yes. According to me it is the easiest to understand and most powerful one between itself, React and Angular. See their skeleton app here: <a href="https://github.com/aurelia/skeleton-navigationi" rel="nofollow">https://github.com/aurelia/skeleton-navigationi</a> would recommend the "skeleton-typescript-webpack" option. </p></pre>darkmagician2: <pre><p>If you are trying to create a shop check this out <a href="https://www.polymer-project.org/2.0/toolbox/case-study" rel="nofollow">https://www.polymer-project.org/2.0/toolbox/case-study</a></p></pre>gohacker: <pre><p>jQuery is the best in the sense that its future releases aren't like to introduce severe breaking changes (unlike most modern JS frameworks).</p></pre>francoishill: <pre><p>You might also want to look at VueJS: <a href="https://vuejs.org" rel="nofollow">https://vuejs.org</a></p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传