mirror of
https://github.com/foomo/foomo-docs.git
synced 2025-10-16 12:35:40 +00:00
18 lines
9.7 KiB
HTML
18 lines
9.7 KiB
HTML
<!doctype html>
|
||
<html class="docs-version-current" lang="en" dir="ltr">
|
||
<head>
|
||
<meta charset="UTF-8">
|
||
<meta name="viewport" content="width=device-width,initial-scale=1">
|
||
<meta name="generator" content="Docusaurus v2.0.0-beta.9">
|
||
<link rel="alternate" type="application/rss+xml" href="/blog/rss.xml" title="foomo project docs RSS Feed">
|
||
<link rel="alternate" type="application/atom+xml" href="/blog/atom.xml" title="foomo project docs Atom Feed"><title data-react-helmet="true">Stack | foomo project docs</title><meta data-react-helmet="true" name="twitter:card" content="summary_large_image"><meta data-react-helmet="true" property="og:url" content="https://foomo.org//docs/frontend/stack"><meta data-react-helmet="true" name="docusaurus_locale" content="en"><meta data-react-helmet="true" name="docusaurus_version" content="current"><meta data-react-helmet="true" name="docusaurus_tag" content="docs-default-current"><meta data-react-helmet="true" property="og:title" content="Stack | foomo project docs"><meta data-react-helmet="true" name="description" content="Our frontend stack is permanently changing as the underlying eco system does. We are trying to adopt technologies at the "Slope of Enlightenment" in the hype cycle."><meta data-react-helmet="true" property="og:description" content="Our frontend stack is permanently changing as the underlying eco system does. We are trying to adopt technologies at the "Slope of Enlightenment" in the hype cycle."><link data-react-helmet="true" rel="shortcut icon" href="/img/favicon.ico"><link data-react-helmet="true" rel="canonical" href="https://foomo.org//docs/frontend/stack"><link data-react-helmet="true" rel="alternate" href="https://foomo.org//docs/frontend/stack" hreflang="en"><link data-react-helmet="true" rel="alternate" href="https://foomo.org//docs/frontend/stack" hreflang="x-default"><link rel="stylesheet" href="/assets/css/styles.d296bbaa.css">
|
||
<link rel="preload" href="/assets/js/runtime~main.17eaf1ac.js" as="script">
|
||
<link rel="preload" href="/assets/js/main.5762bdf4.js" as="script">
|
||
</head>
|
||
<body>
|
||
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){var t=null;try{t=localStorage.getItem("theme")}catch(t){}return t}();t(null!==e?e:"light")}()</script><div id="__docusaurus">
|
||
<div><a href="#" class="skipToContent_OuoZ">Skip to main content</a></div><nav class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Navigation bar toggle" class="navbar__toggle clean-btn" type="button" tabindex="0"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a class="navbar__brand" href="/"><b class="navbar__title">foomo</b></a><a class="navbar__item navbar__link" href="/docs/general/intro">General</a><a class="navbar__item navbar__link navbar__link--active" href="/docs/frontend/intro">Frontend</a><a class="navbar__item navbar__link" href="/docs/backend/intro">Backend</a><a class="navbar__item navbar__link" href="/docs/devops/intro">DevOps</a></div><div class="navbar__items navbar__items--right"><a class="navbar__item navbar__link" href="/blog">Blog</a></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div class="main-wrapper docs-wrapper docs-doc-page"><div class="docPage_lDyR"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_i9tI" type="button"></button><aside class="docSidebarContainer_0YBq"><div class="sidebar_a3j0"><nav class="menu thin-scrollbar menu_cyFh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/frontend/intro">Intro</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/frontend/rtfm">RTFM</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/frontend/setup">Setup</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" aria-current="page" href="/docs/frontend/stack">Stack</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item"><a class="menu__link menu__link--sublist" href="#">TypeScript</a><ul style="display:block;overflow:visible;height:auto" class="menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/frontend/typescript/objects">Objects</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-2 menu__list-item"><a class="menu__link" tabindex="0" href="/docs/frontend/typescript/spreading">Spreading</a></li></ul></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/frontend/debugging_js">Debugging in JavaScript</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="/docs/frontend/pitfalls">Pittfals</a></li></ul></nav></div></aside><main class="docMainContainer_r8cw"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_zHA2"><div class="docItemContainer_oiyr"><article><div class="tocCollapsible_aw-L theme-doc-toc-mobile tocMobile_Tx6Y"><button type="button" class="clean-btn tocCollapsibleButton_zr6a">On this page</button></div><div class="theme-doc-markdown markdown"><header><h1>Frontend Stack</h1></header><p>Our frontend stack is permanently changing as the underlying eco system does. We are trying to adopt technologies at the "Slope of Enlightenment" in the <a href="https://en.wikipedia.org/wiki/Gartner_hype_cycle" target="_blank" rel="noopener noreferrer">hype cycle</a>.</p><p>Former iterations of our stack were MVC or MVVM frontend frameworks. Since the arrival of React and state mangement libraries like Redux and Zustand we have been building reactive applications. </p><p>Reactive frontends are fun to develop and they scale.</p><h2 class="anchor anchorWithStickyNavbar_y2LR" id="typescript">TypeScript<a aria-hidden="true" class="hash-link" href="#typescript" title="Direct link to heading"></a></h2><p>Is our language of choice to build frontends for web applications.</p><p>We have adopted TypeScript very early, right after its initial public release in 2012. Here is a list of motives:</p><ul><li>it is a superset JavaScript</li><li>it does not try to replace JavaScript like many other languages, which compile to JavaScript, it tries to complement and improve it, while staying compatible</li><li>good type system</li><li>great tooling</li></ul><p>While it seemed to be crazy to trust Microsoft as a friendly open source company, we have not been disappointed so far.</p><h2 class="anchor anchorWithStickyNavbar_y2LR" id="react--preact">React / Preact<a aria-hidden="true" class="hash-link" href="#react--preact" title="Direct link to heading"></a></h2><p>Declarative components and views, fast to develop and fast at runtime.</p><h2 class="anchor anchorWithStickyNavbar_y2LR" id="gotsrpc">gotsrpc<a aria-hidden="true" class="hash-link" href="#gotsrpc" title="Direct link to heading"></a></h2><p>Since we are building services in Go and not with Node.js we have created a light weight RPC framework to integrate TypeScript with Go. </p><p>When creating TS definitions on the Go side we follow <strong>camel case</strong> convention of naming fields e.g. <code>lastDateModified</code> instead of <code>LastDateModified</code>.</p></div><footer class="theme-doc-footer docusaurus-mt-lg"><div class="theme-doc-footer-tags-row row margin-bottom--sm"><div class="col"><b>Tags:</b><ul class="tags_NBRY padding--none margin-left--sm"><li class="tag_F03v"><a class="tag_WK-t tagRegular_LXbV" href="/docs/tags/frontend">frontend</a></li><li class="tag_F03v"><a class="tag_WK-t tagRegular_LXbV" href="/docs/tags/overview">overview</a></li></ul></div></div></footer></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages navigation"><div class="pagination-nav__item"><a class="pagination-nav__link" href="/docs/frontend/setup"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">« <!-- -->Setup</div></a></div><div class="pagination-nav__item pagination-nav__item--next"><a class="pagination-nav__link" href="/docs/frontend/typescript/objects"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Objects<!-- --> »</div></a></div></nav></div></div><div class="col col--3"><div class="tableOfContents_vrFS thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="#typescript" class="table-of-contents__link toc-highlight">TypeScript</a></li><li><a href="#react--preact" class="table-of-contents__link toc-highlight">React / Preact</a></li><li><a href="#gotsrpc" class="table-of-contents__link toc-highlight">gotsrpc</a></li></ul></div></div></div></div></main></div></div><footer class="footer"><div class="container"><div class="row footer__links"><div class="col footer__col"><div class="footer__title">legal</div><ul class="footer__items"><li class="footer__item"><a class="footer__link-item" href="/etc/imprint">Imprint</a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">© 2021 bestbytes</div></div></div></footer></div>
|
||
<script src="/assets/js/runtime~main.17eaf1ac.js"></script>
|
||
<script src="/assets/js/main.5762bdf4.js"></script>
|
||
</body>
|
||
</html> |