<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Marko Stijak on Medium]]></title>
        <description><![CDATA[Stories by Marko Stijak on Medium]]></description>
        <link>https://medium.com/@marko.stijak?source=rss-c055554ab752------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*11uVXjys9b7bqGnjF9cIxw.png</url>
            <title>Stories by Marko Stijak on Medium</title>
            <link>https://medium.com/@marko.stijak?source=rss-c055554ab752------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:12:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@marko.stijak/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Forging Genuine Partnerships]]></title>
            <link>https://medium.com/codaxy/forging-genuine-partnerships-e3d7e9d4eedf?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3d7e9d4eedf</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[client-relationship]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Mon, 14 Aug 2023 12:35:59 GMT</pubDate>
            <atom:updated>2023-08-14T12:35:59.185Z</atom:updated>
            <content:encoded><![CDATA[<p>When trying to explain what sets you apart from anyone else in the industry, the first impulse is to list skills, size, completed projects, and other achievements in an attempt to provide proof of expertise. While that is, of course, an important part, it rarely provides the whole picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*IIewSLd43ruALmcKuFSpKw.png" /></figure><p>Explaining what makes Codaxy different from other software development companies out there by just showing off our badges doesn’t tell the whole story, as what truly sets us apart goes beyond our technical skills and expertise.</p><p>Our defining factor is a deep commitment to fostering genuine, lasting relationships with both our clients and team members. Our entire philosophy is centered on strengthening these connections. It takes time to form a winning team and build an outstanding product. This is a gradual process that demands time and patience.</p><p>The real progress begins around six months into the project, when the team has comprehensively understood the problem, established an efficient way of working, and laid down major technical infrastructure elements. This is the time when new product features are shipped weekly if not daily, leading to clients who are not just content but truly satisfied.</p><p>Reaching this state feels great for everyone involved, but substantial knowledge and effort are required to actually get there.</p><h3>Let’s first get to know each other</h3><p>Partnerships, like any other relationship, are built on a foundation of trust and mutual understanding. That is not given in the early stages, where neither side is familiar with the other.</p><p>Understandably, clients are hesitant to put not only their trust but also extensive resources, into a venture that they are not familiar with. That’s why we like to kick off our collaborations with a proof of concept (PoC) phase. Setting a limited time frame, budget, and scope, helps alleviate some of the pressure and provides a safe space to get to know each other, understand how our communication works, and explore what each party can bring to the table.</p><p>This approach has proven successful time and again, as evidenced by our work with VodafoneZiggo for example, where 5 out of 7 PoCs evolved into projects which are extensive and have been ongoing for years.</p><p>At times, the POC phase reveals that the project may not be sustainable or that we and the clients may not be the right fit for each other. Recognizing these issues early on, without delving too deeply into the project, is crucial for both parties involved.</p><p>While the PoC phase is commonly the first step in our partnerships, it’s not the only approach. We are more than capable of launching large-scale projects right from the outset.</p><p>And yes, here we’ll tell you about our expertise because one of the key values we bring to the table is our extensive experience and knowledge accrued from developing complex applications and the internal libraries we developed along the way.</p><h3>Let’s talk about expertise</h3><p>We have been up and running for over 13 years, so experience is a given. What is, however, noteworthy is the type of projects we have worked on — or rather their complexity.</p><p>We have successfully tackled a diverse portfolio of products, including:</p><ul><li>automated provisioning and orchestration of telco services</li><li>telco e-commerce platforms</li><li>engineering and end-customer portals</li><li>legal budget and expense tracking systems</li><li>real-time stock market trading platforms</li><li>brokerage CRMs</li><li>financial accounting systems</li><li>satellite communications and GPS solutions</li><li>Bitcoin-related projects</li></ul><p>and <a href="https://www.codaxy.com/work">more</a>.</p><p>This hands-on experience with intricate use cases is not only quite rare in the industry, but also a major factor that helps us build stronger relationships with new clients. How? Well, it allows us to provide our clients with a degree of security and risk reduction from the get-go, which — you will agree — is a great starting point for any relationship. Our software architects can construct robust foundations, foresee potential roadblocks, and steer partners toward the most suitable path during the beginning stages of a project.</p><p>We take pride in our flexibility during these early stages of a project. With our smaller team size and direct communication lines, we can quickly progress, unlike larger corporations where planning can sometimes feel endless.</p><h3>Creating our competitive advantages</h3><p>Being able to quickly assemble projects is a significant priority for us and one of the reasons why we developed our very own JavaScript UI framework — CxJS.</p><p>This powerful framework boasts an extensive collection of commonly used components, allowing us to reduce development time and expedite product launches drastically.</p><p>CxJS excels in handling large, complex UIs that feature numerous tables, forms, and charts — a perfect fit for financial and administrative applications where data visualization and user interaction are paramount. The framework allows visual customization, enabling unique and vibrant appearances that conform to the client’s particular visual and branding requirements.</p><p>In line with our spirit of openness and collaboration, we are proud to highlight that CxJS is an open-source platform.</p><h3>Collaboration with Clients</h3><p>There are plenty of ways in which we ensure our partnerships start on the right foot — but how do we maintain them? For starters, we believe in regular and meaningful interactions, preferably on a daily or weekly basis.</p><p>Whenever possible, we encourage in-person meetings, either by hosting clients at our office or organizing visits to their locations. These face-to-face interactions have proven invaluable, as they allow both teams to better understand each other and the project at hand and serve as a solid foundation for building long-lasting relationships.</p><h3>Preference for Scrum</h3><p>Although our team is experienced in a variety of project management methodologies, and we are open to any approach, we do have a preference for Scrum.</p><p>In our approach, the client acts as the product owner, while the scrum master and the rest of the team come from Codaxy. This ensures clear ownership and allows us to keep communication open throughout the development process, but also ties back to our last point about regular and meaningful interactions. By actively involving our customers in the planning and preparation of each sprint, we can consistently meet their expectations, leading to long-term satisfaction.</p><p>The other technical side of our agile approach is our adoption of Continuous Integration and Continuous Deployment (CI/CD) tools. This method allows us to continually publish and release the work results at the end of each sprint.</p><p>This approach promotes transparency, providing our clients with uninterrupted and unhindered insight into the development processes.</p><h3>Seamless Team Member Onboarding</h3><p>Many of our projects are intricate and dynamic, sometimes extending over several years. As the projects grow, due to new initiatives, or changes in team composition, we often require additional team members. Incorporating new members into ongoing projects can pose challenges for both the existing team members and the clients.</p><p>To address this, we have designed a specialized onboarding program with individual training sessions covering project management methodologies, developer tools, coding principles, architecture, technologies specific to the project, and domain knowledge.</p><p>To infuse fresh perspectives and further promote knowledge sharing, we adopt a strategic rotation approach. This means that existing team members are occasionally assigned to new challenging projects, and at the same time, new members are introduced to established projects.</p><p>This cross-pollination of ideas enriches the overall team experience and cultivates a learning and collaboration environment. We take immense pride in our work culture, which encourages professional growth and fosters a sense of belonging among our team members.</p><p>As a result, we maintain high employee satisfaction, reflected in our impressive Net Promoter Score, and welcome new talent to grow together with us.</p><h3>Consistency and Evolution</h3><p>After completing projects, it’s common for our clients to return, not necessarily seeking the same team, but rather valuing our consistent approach. This speaks volumes about the trust they have in us and the relationships we’ve built together.</p><p>It’s these robust alliances that allow us to elevate our services, exceed expectations, and fortify our position as a reliable partner in the industry.</p><p>With each project, we improve our service quality, performance, timeliness, and communication. We keep growing, not only in numbers but also in the quality and breadth of our services.</p><p>We believe this is the measure of true partners — putting in the time to understand the needs on a deeper level and working together to ensure mutual success.</p><p>This is the Codaxy way.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3d7e9d4eedf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/forging-genuine-partnerships-e3d7e9d4eedf">Forging Genuine Partnerships</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CxJS Goes Open Source]]></title>
            <link>https://medium.com/codaxy/cxjs-goes-open-source-f52fee2a8214?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/f52fee2a8214</guid>
            <category><![CDATA[cxjs]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Fri, 24 Sep 2021 13:36:17 GMT</pubDate>
            <atom:updated>2021-09-24T13:36:17.658Z</atom:updated>
            <content:encoded><![CDATA[<p>After 5 years of development, more than 2200 commits, and 400 releases, <a href="https://cxjs.io/">CxJS</a> is becoming free software. The whole set of widgets, charts, themes, demo applications, documentation, and tools is from now on available under the MIT license.</p><h4>What is CxJS?</h4><p>CxJS is a batteries-included JavaScript framework for single-page applications. CxJS is built on top of React and features a large collection of widget and chart components, alongside state management, client-side routing, theming, localization, and other application-level concepts. The goal of CxJS is to be a one-stop shop for projects such as admin applications and dashboards.</p><h4>Motivation for License Change</h4><p>It was clear from the beginning that maintaining a large JavaScript framework will be a difficult task. We chose a commercial licensing model hoping to directly fund development and support from sales, but we never got enough traction. Even without funding, CxJS continued to evolve. Here at <a href="https://www.codaxy.com/">Codaxy</a>, we’re working on many consulting projects and we’re constantly adding new features based on the requirements we encounter. After five years of development, CxJS matured into a comprehensive battle-tested solution, but commercial offering simply does not make sense anymore.</p><p>Let’s go back and see some of the most challenging projects that influenced the development of the framework over the years.</p><h4>TurboTrack (2017)</h4><p>TurboTrack was the first big CxJS project. The application is used for real-time GPS vehicle tracking and reporting on top of the collected data. This was an opportunity to complete the Material theme support in CxJS and develop a library for Google Maps integration. It’s interesting that the application layout is fully responsive, meaning it can be used on large desktop screens and mobile phones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i8XrAg0NxabGj1YkZckqXA.png" /><figcaption>Screenshot of TurboTrack</figcaption></figure><h4>Assetmax (2018)</h4><p>Special thanks go to Assetmax, who is one of the first adopters of CxJS for their online wealth-management platform. Assetmax UI proved to be a big challenge with features such as configurable dashboards, configurable navigation, light/dark visual themes, custom reporting, PDF exports, printing, configurable admin tables with a large number of columns and rows, advanced sorting/filtering options, and other UX requirements. There are a lot of improvements added to CxJS related to this project, but most changes were related to the Grid (data table) widget with features such as row and cell editing, column resizing and reordering, buffered rendering, etc.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6iAO2__oxH6hVct-GYiOaA.png" /><figcaption>Screenshot of Assetmax</figcaption></figure><h4>Rise Wallet (2019)</h4><p>Rise Wallet allows purchasing small amounts of Bitcoin using gift cards. Developing a web application wrapped in a mobile web view is not usually the best approach, but the proof of concept was so good that we decided to go all the way. Except for buttons and charts, most of the components had to be developed within the application, but this was an excellent opportunity to work out CxJS features related to touch event handling, hash-based routing, and ironing out Safari quirks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*W48LDcE6cLMifxhNBk1NMQ.png" /><figcaption>Screens from the Rise Wallet mobile application</figcaption></figure><h4>The Future</h4><p>Now when CxJS is completely free, the biggest hope we have is that it will be used more. It would be nice to see CxJS used within other open-source products and especially to see contributions from the community. There are many open opportunities. <a href="https://docs.cxjs.io/">The CxJS documentation application</a> is pretty nice and could be extracted into a reusable documentation project template. It is time for a new visual theme. Google-like calendar widget? Maybe pgAdmin could be rewritten in CxJS!? It would be great to see application templates for different backends, i.e. Node.js, .NET, Java, or PHP. That’s something that we always wanted but never had time to deliver. There is an application template for integration with Tailwind CSS, but we could use one for Bootstrap too.</p><h4>Try it out and become a member of the CxJS community</h4><p>You can quickly try out CxJS by setting up a new project using <a href="https://cxjs.io/get-started">CxJS CLI tools</a>. In our previous post, we presented <a href="https://blog.codaxy.com/cxjs-and-tailwind-css-ffd02f099445">how CxJS and Tailwind CSS play nicely</a> and that might be a good starting point.</p><p>If you like CxJS, give it a star on <a href="https://github.com/codaxy/cxjs">GitHub</a>. If you need help, ask a question on <a href="https://stackoverflow.com/questions/tagged/cxjs">StackOverflow</a>. If you find a bug, please <a href="https://github.com/codaxy/cxjs/issues">raise an issue</a>. <a href="https://cxjs.io/support">Request an invite to our Slack channel</a> and become a member of the CxJS community.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f52fee2a8214" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/cxjs-goes-open-source-f52fee2a8214">CxJS Goes Open Source</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CxJS and Tailwind CSS]]></title>
            <link>https://medium.com/codaxy/cxjs-and-tailwind-css-ffd02f099445?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/ffd02f099445</guid>
            <category><![CDATA[tailwind-css]]></category>
            <category><![CDATA[cxjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[css]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Mon, 19 Jul 2021 10:22:58 GMT</pubDate>
            <atom:updated>2021-07-19T10:22:58.609Z</atom:updated>
            <content:encoded><![CDATA[<p>Tailwind CSS is a utility-first CSS framework packed with classes like <strong>flex</strong>, <strong>pt-4</strong>, <strong>text-center</strong> and <strong>rotate-90</strong> that can be composed to build any design, directly in your markup.</p><p>CxJS is a JavaScript framework designed for building large single-page applications such as administration consoles and dashboards. CxJS can be easily combined with CSS frameworks such as Bootstrap or Tailwind CSS as all CSS classes generated by the framework are prefixed. This post is about Tailwind CSS and how it nicely complements CxJS.</p><h4>Tailwind CSS</h4><p>There are many benefits that <a href="https://tailwindcss.com/">Tailwind CSS</a> brings. For me, number one is the productivity gain achieved by not having to come up with names for CSS classes and separately edit .css and .js files. Large projects have too many files already, and CSS always feels disconnected from the rest of the code. The same question always pops up — where should CSS files be located? Should they be at a completely separate location or colocated with the application components? How do you find a CSS class in a large project and how can you be sure that making a small change will not break things somewhere else.</p><p>With Tailwind CSS, you don’t have to come up with names for CSS classes, in most cases you don’t even need to write any CSS at all. You simply apply bits and pieces from an extremely large pool of predefined utility classes.</p><h4>CxJS</h4><p>This philosophy is very similar to <a href="https://cxjs.io/">CxJS</a>. CxJS offers a large set of ready-to-use JavaScript components, such as widgets and charts, which are glued together using application-level utilities for state management, routing, push-state navigation, form validation, localization, etc. Everything is there, you just combine bits and pieces. In CxJS, you are encouraged not to give names to routes and controllers. Why? Simply, in large-scale applications dealing with so many names becomes extremely tedious. Not having names makes things easier to refactor and move from one place to another.</p><p>Let’s go now into some practical pieces.</p><h4>Sample App</h4><p>To make things easier for fellow CxJS developers, we built a sample <a href="https://twapp.cxjs.io/">Demo application</a> with source code available on <a href="https://github.com/codaxy/cxjs-tailwindcss-template">GitHub</a>. The application has the tooling preconfigured, so it’s a good starting point if you wish to play with CxJS and Tailwind CSS together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pTiJ4TWvsBmBqJfbgPm6LQ.png" /><figcaption>Screenshot of the sample application</figcaption></figure><p>Full disclosure, the inspiration for the layout and the dashboard page came from this amazing <a href="https://dribbble.com/shots/6695550-Sales-Dashboard-App">Dribbble</a>.</p><h4>Sidebar Navigation</h4><figure><img alt="Navigation menu" src="https://cdn-images-1.medium.com/max/252/1*e-Xqv1kF7cPLdOQfboQZow.png" /></figure><p>Let’s start with an example of the navigation menu. The most interesting part is how navigation items are implemented. Items are links pointing to various application parts. Each item is visually represented with an icon and text. If the browser’s URL matches the <strong>href </strong>attribute, the item is in the active state and changes appearance. Besides that, nav items can have small badges and allow expanding/collapsing. These functionalities are implemented in the component below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/395e6cb70018e60392495b50d2f89a5e/href">https://medium.com/media/395e6cb70018e60392495b50d2f89a5e/href</a></iframe><p>You can see here Tailwind CSS at work. The class attribute is strikingly long. It cannot fit the screen and that’s very common. People sometimes get scared, but that is actually an advantage as it’s easy to learn about the appearance of the component without leaving the file. The nav item is implemented using the flex layout, the text is gray and semi-bold, the background changes to light gray color on hover and there is a left border of 3px that is initially transparent. When active, the item changes its background to light blue, also the left border and text become blue. Similar to the container, you can see how the icon and text are positioned. It’s all there and in your sight. You are literally seconds away from a new version and changes you make are immediately applied and presented in the browser.</p><blockquote>You’ll notice that active classes start with an exclamation mark. That’s Tailwind’s way of adding !important modifier which comes really handy here as active classes need to override default appearance.</blockquote><h4>Dashboard KPI Widgets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/558/1*u1CJgiCQSlJfyOUYI8-vLw.png" /></figure><p>Let’s see another example — a dashboard KPI component. This component consists of an icon, a title, a numeric value, and a percentage change indicator.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/705791e1de275b6573e51338e57fbfe0/href">https://medium.com/media/705791e1de275b6573e51338e57fbfe0/href</a></iframe><p>We can see that this is a padded white box with a rounded border. Inside the box, the first element is an icon. Curiously, it has both class and className properties defined. CxJS supports both and this comes in handy here as the positioning and size of the icon is predefined, and the rest can be passed externally i.e. colors. The title and value parts are pretty straightforward. It’s just positioning, text color, and size. The change part is interesting. If the change is positive, the text is displayed in green and the icon is pointing up. If the change is negative, the text is displayed in red and the icon is pointing down. Since the change prop can be a binding, an expression, or a constant value, DataProxy is used to resolve the value and bring it into the store under the alias <em>$change</em>. With that available, the appearance logic can be easily implemented using expressions and computable values.</p><h3>Conclusion</h3><p><strong>CxJS stops with components and Tailwind CSS continues right there. It allows components to be easily arranged into higher-order visual elements such as widgets, sections, toolbars, layouts, etc.</strong></p><p>Predefined utilities for margins, colors, shadows, gradients, and other things, are really useful and save precious development time. On top of that excellent documentation, VS Code extensions, and JIT mode make using Tailwind CSS a great development experience. With all that, it’s easy to conclude that Tailwind CSS is a great companion and complements CxJS really well.</p><p><a href="https://github.com/codaxy/cxjs-tailwindcss-template">The provided application template</a> can be used as a starting point, as all the tooling has been preconfigured. It can be used for experiments or as a template for new projects. If you wish to try it out, the easiest way to set up a new project is using <a href="https://cxjs.io/get-started">CxJS CLI tools</a>.</p><p>Stay tuned. There is some exciting news coming soon.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ffd02f099445" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/cxjs-and-tailwind-css-ffd02f099445">CxJS and Tailwind CSS</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to publish your CxJS application on Netlify]]></title>
            <link>https://medium.com/codaxy/how-to-publish-your-cxjs-application-on-netlify-5df357c043d3?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/5df357c043d3</guid>
            <category><![CDATA[single-page-applications]]></category>
            <category><![CDATA[cxjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[netlify]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Thu, 25 Oct 2018 10:38:17 GMT</pubDate>
            <atom:updated>2018-10-29T08:26:43.217Z</atom:updated>
            <content:encoded><![CDATA[<p>First, let me say that Netlify is an incredibly useful tool. They provide an all-in-one workflow that combines global deployment, continuous integration, and automatic HTTPS. That makes it a perfect place for hosting <a href="https://cxjs.io/">CxJS</a> based applications. Let’s see how we can publish a Single Page Application (SPA) on Netlify and configure URL rewriting.</p><p>I’ll use the <a href="https://starter.cxjs.io/">CxJS Starter Kit</a> as an example. The project <a href="https://github.com/codaxy/cx-starter-kit">is located on GitHub</a>. You can follow the steps using your own project located on GitHub, GitLab or BitBucket or <a href="https://github.com/codaxy/cx-starter-kit">fork Starter Kit</a> and use it as your own project.</p><h4>Setting up a new project on Netlify</h4><p>Once you sign in you’ll see the list of your sites. Since you are reading this post the list will probably be empty, so just hit <strong>New site from Git </strong>in the top-right corner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AWdg3gtnTMbf1a4Q4gSYhA.png" /></figure><p>You will be asked to allow Netlify to access your GitHub account. Once you do that you will be able to pick a repository from a list of your repositories retrieved from GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osMKN0FioPzG5GzKRapBVw.png" /></figure><p>After selecting the project, let’s configure the build step.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bbHIE_d_cYZvlroMBEIYug.png" /></figure><p>We need to instruct Netlify to build the project using the <strong>npm run build </strong>command and to publish the contents of the <strong>dist</strong> folder if the build is successful.</p><p><em>It’s not required to run npm install. Netlify will detect package.json and automatically install NPM packages. Yarn will be used for installing packages if yarn.lock is detected.</em></p><p>That’s almost it. You’ll now see that a new site deployment is in progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gYHm8pPQOIqf4TVTxlMLsw.png" /></figure><p>Netlify will assign a random name to your site and deploy it on <strong>{name}.netlify.com </strong>domain. You can easily change the name in <strong>Site settings</strong> or configure your own <strong>Domain settings</strong>.</p><p>After approximately one minute, the site is live.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o6VINzztZPzPezHszao5-g.png" /></figure><p>Can it be simpler than that? I don’t think so.</p><h4>URL Rewriting</h4><p>For single-page applications all the routing and content rendering is done client-side. If you try to directly access any other page except the homepage, you’ll encounter an error — <strong>404 — Page not found</strong>.</p><p>Since the application is handling routing and rendering, the trick is to serve the same content for all URL paths and let the application do its job. This technique is called URL rewriting.</p><p>Netlify provides an easy way to configure URL rewriting by putting a file called <strong>_redirects</strong> alongside other published resources. For our use case, the contents of the file should be just this one line.</p><pre>/*    /index.html   200</pre><p>In Starter Kit, I created a file called <strong>netlify.redirects</strong> in the <strong>config </strong>folder and added the following snippet in webpack’s production configuration (<strong>webpack.prod.js).</strong></p><pre><strong>new </strong>CopyWebpackPlugin([{<br>    from: path.resolve(__dirname, &#39;./netlify.redirects&#39;),<br>    to: &#39;_redirects&#39;,<br>    toType: &#39;file&#39;<br>}])</pre><p>Now everything works as expected.</p><h4>Conclusion</h4><p>As you see, it takes less than ten minutes to get your application up and running. Besides that, Netlify provides a myriad of features that are great for testing and production purposes.</p><p>In the next post, I’ll explain how to configure webpack and Netlify for <strong>optimal long-term caching</strong>. Stay tuned.</p><p><a href="https://cxjs.io/"><em>CxJS</em></a><em> allows you to easily build enterprise-grade JavaScript applications. Form widgets, advanced data tables, charts, client-side routing, advanced layouts, beautiful visual themes, and many other features are </em><a href="https://gallery.cxjs.io/"><em>available in CxJS out of the box</em></a><em>. There is no better tool for the job, </em><a href="https://cxjs.io/pricing"><em>now completely free for small teams and startups</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5df357c043d3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/how-to-publish-your-cxjs-application-on-netlify-5df357c043d3">How to publish your CxJS application on Netlify</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Seven Advanced CxJS Grid Features]]></title>
            <link>https://medium.com/codaxy/seven-advanced-cxjs-grid-features-abaebf75f17f?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/abaebf75f17f</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[ui]]></category>
            <category><![CDATA[enterprise-technology]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Fri, 09 Feb 2018 11:50:01 GMT</pubDate>
            <atom:updated>2018-02-10T09:14:53.110Z</atom:updated>
            <content:encoded><![CDATA[<p>Grid (data-table) widget is a very important building block of enterprise applications. CxJS includes a versatile grid control which beside standard grid operations such as selection, sorting, paging, and filtering, offers more advanced features out of the box.</p><h4>1. Rich Content</h4><p>CxJS grids allow super simple date, number, and currency formatting. On top of that it’s possible to use <a href="https://gallery.cxjs.io/material/grid/dashboard-grid">other CxJS widgets inside the grid, such as sliders, number fields or even charts and other grids</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A7qS9EKoG2qr0KKD5WyJbw.png" /></figure><h4>2. Drag &amp; Drop</h4><p>Grid <a href="https://gallery.cxjs.io/material/grid/drag-drop">supports dragging &amp; droping of rows</a>. This can be used to reorder records within a grid or to move records between multiple collections.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ckIYzYfS5UXLZpjx8eU41Q.png" /></figure><h4>3. Grouping &amp; Aggregates</h4><p>Data in the grid <a href="https://gallery.cxjs.io/material/grid/dynamic-grouping">can be easily aggregated (grouped) by any column</a>. Group-level headers and footers display aggregated values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WwX4G8gwP8otrIIYyeC5Og.png" /></figure><h4>4. Row Editing</h4><p>In some scenarios, the easisest way to edit the data is to <a href="https://gallery.cxjs.io/material/grid/row-editing">do it directly inside the grid</a>. Each grid row is a separate validation group which makes row editing very simple.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X-Begv2B7uisXfenzFkFqw.png" /></figure><h4>5. Row Expanding</h4><p>Grids can display a lot of data, but sometimes it’s required to <a href="https://gallery.cxjs.io/material/grid/row-expanding">display even more data on demand</a>. This is easily implemented by expanding rows into additional lines with their own unique content.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Ne3pJIjhJgZx0oSvYujag.png" /></figure><h4>6. Trees</h4><p>Did you know that a grid can be easily <a href="https://gallery.cxjs.io/material/grid/tree-grid">converted into a tree</a> by indenting and rendering tree icons in the first column? CxJS offers TreeNode and TreeAdapter components which makes this task very straightforward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dY9MtVzPO3d5QLoCd2taeg.png" /></figure><h4>7. Buffering &amp; Infinite Scrolling</h4><p>Dealing with large data collections can cause UI performance problems. When <a href="https://gallery.cxjs.io/material/grid/buffering">grid buffering</a> is enabled, only visible rows are rendered. Instead of rendering all 5000 rows, only 10–20 currently visible rows are rendered. Grid tracks scroll position and re-renders new rows when necessary and optionally loads more data (a.k.a infinite scrolling).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZtBMNrjnh17jiG1khwTq5g.png" /></figure><h4>Conclusion</h4><p>Grids are extensively used in many different ways. Instead of building multiple widgets, the Grid widget in CxJS is packed with features that cover the most common use-cases. I believe we managed to struck the balance between customization options, performance and user experience. Feel free to comment and suggest new features or enhancements in the comments.</p><p><a href="https://cxjs.io/"><em>CxJS</em></a><em> allows you to easily build enterprise JavaScript applications. There is no better tool for the job, </em><a href="https://cxjs.io/pricing"><em>now completely free for small teams and startups</em></a><em>. Form widgets, tables, charts, client-side routing, advanced layouts, themes, and many other features are </em><a href="https://gallery.cxjs.io/"><em>available out of the box</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abaebf75f17f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/seven-advanced-cxjs-grid-features-abaebf75f17f">Seven Advanced CxJS Grid Features</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Squeeze your webpack bundles even more by extracting Babel helpers]]></title>
            <link>https://medium.com/codaxy/squeeze-your-webpack-bundles-even-more-by-extracting-babel-helpers-402b880c95a2?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/402b880c95a2</guid>
            <category><![CDATA[babel]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[webpack]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Wed, 23 Aug 2017 14:03:19 GMT</pubDate>
            <atom:updated>2017-08-29T07:55:45.115Z</atom:updated>
            <content:encoded><![CDATA[<p>If you’re using webpack, Babel and React (or <a href="https://cxjs.io/">CxJS</a> or Angular), you probably deal with a large number of classes. ES6 brings a nice class syntax, but it comes with a cost. In order to make things work in older browsers you’re probably using Babel to compile the code, so let’s see what Babel does.</p><p>ES6:</p><pre>class MyComponent extends React.Component {<br> <br>}</pre><p>ES5:</p><pre>“use strict”;</pre><pre>function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(“Cannot call a class as a function”); } } </pre><pre>function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(“this hasn’t been initialised — super() hasn’t been called”); } return call &amp;&amp; (typeof call === “object” || typeof call === “function”) ? call : self; } </pre><pre>function _inherits(subClass, superClass) { if (typeof superClass !== “function” &amp;&amp; superClass !== null) { throw new TypeError(“Super expression must either be null or a function, not “ + typeof superClass); } subClass.prototype = Object.create(superClass &amp;&amp; superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; } </pre><pre>var MyComponent = function (_React$Component) {<br> _inherits(MyComponent, _React$Component); </pre><pre>function MyComponent() {<br> _classCallCheck(this, MyComponent); <br>return _possibleConstructorReturn(this, (MyComponent.__proto__ || Object.getPrototypeOf(MyComponent)).apply(this, arguments));<br> } <br>return MyComponent;<br>}(React.Component);</pre><p>Yes, you’re seeing it right. Test it <a href="https://babeljs.io/repl/#?babili=false&amp;evaluate=true&amp;lineWrap=false&amp;presets=es2015%2Creact%2Cstage-2&amp;targets=&amp;browsers=&amp;builtIns=false&amp;debug=false&amp;code_lz=MYGwhgzhAECyCeBhA9gWwA7IHYFMsBdocAPfPAExgCUcxh8A6FDbPQgbwChppOBfIA">here</a>. To make things even worse, Babel works on individual files which means that each file containing a class will be polluted like this.</p><blockquote>Babel has a few helper functions that’ll be placed at the top of the generated code if needed so it’s not inlined multiple times throughout that file. This may become an issue if you have multiple files, especially when you’re sending them to the browser. gzip alleviates most of this concern but it’s still not ideal.</blockquote><p><strong>babel-plugin-external-helpers</strong></p><p>Fortunately, Babel offers a plugin that helps with this problem. It is called <strong>babel-plugin-external-helpers</strong>. If you use this plugin, the helper functions will be accessed from a global variable called babelHelpers, instead of being added the generated code.</p><pre>var MyComponent = function (_React$Component) {<br> babelHelpers.inherits(MyComponent, _React$Component);</pre><pre>function MyComponent() {<br> babelHelpers.classCallCheck(this, MyComponent); <br>return babelHelpers.possibleConstructorReturn(this, (MyComponent.__proto__ || Object.getPrototypeOf(MyComponent)).apply(this, arguments));<br> } <br>return MyComponent;<br>}(React.Component);</pre><p>This is not perfect, but it’s much better. We can get a nice size reduction if we define a global variable called babelHelpers and use babel-plugin-external-helpers. Babel <a href="https://babeljs.io/docs/plugins/external-helpers/">offers a way to automatically generate helpers </a>in your application, but the proposed way doesn’t work well with Webpack. To overcome this problem, I simply made a new file and put all required helpers inside. Here is the <a href="https://gist.github.com/mstijak/c219562b162b8d8b8d751203d83f661f"><strong>babelHelpers.js</strong></a> file that I ended up with.</p><p>We still need to tweak the webpack configuration. Two changes are required here:</p><ol><li>Load <strong>babelHelpers.js</strong> before the rest of the code:</li></ol><pre>entry: {<br>    app: [<br>        __dirname + &#39;/babelHelpers.js&#39;<br>        __dirname + &#39;/index.js&#39;<br>    ]<br>},</pre><p>If you’re using a file to load polyfills, that might be a good place to include babelHelpers.js too.</p><p>2. Make sure babelHelpers.js is not processed by Babel:</p><pre>{<br>    test: /\.js$/,<br>    loader: &#39;babel-loader&#39;,<br>   <strong> exclude: /(babelHelpers)/,<br>    ...<br></strong>}   </pre><p>That’s it. Your application bundles should be slightly smaller now. For <a href="https://docs.cxjs.io/">CxJS Docs</a>, savings are between 5% and 10%, or around 100 kB across all bundles.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*fJ0arnh0TWYVjSang82Txg.png" /></figure><p>Not bad for a small change like this.</p><p><em>If you’re a developer, you should definitely check out </em><a href="https://cxjs.io/"><em>CxJS</em></a><em>. There is no better tool for the job if you’re building an </em><a href="https://starter.cxjs.io/"><em>advanced JavaScript business application</em></a><em>. Form widgets, data tables, charts, client-side routing, advanced layouts, themes, and many other features are </em><a href="https://gallery.cxjs.io/"><em>available out of the box</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=402b880c95a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/squeeze-your-webpack-bundles-even-more-by-extracting-babel-helpers-402b880c95a2">Squeeze your webpack bundles even more by extracting Babel helpers</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A short journey through the world of static web hosts]]></title>
            <link>https://medium.com/codaxy/a-short-journey-through-the-world-of-static-web-hosts-193c9b0dca0e?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/193c9b0dca0e</guid>
            <category><![CDATA[web-hosting]]></category>
            <category><![CDATA[content-delivery-network]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[seo]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Mon, 05 Jun 2017 14:11:13 GMT</pubDate>
            <atom:updated>2017-06-06T12:50:01.415Z</atom:updated>
            <content:encoded><![CDATA[<h4>Surge, Netlify, Firebase, CloudFlare</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*zhzwvD9Bqihk27Ri4DhCgA.png" /></figure><p>We recently updated <a href="https://cxjs.io/">CxJS </a>website and decided to replace our Germany-based web server with a hosting service offering CDN. Our use case is somewhat strange as CxJS website consists out of several JavaScript applications:</p><ol><li>Homepage — <a href="https://cxjs.io/">cxjs.io</a></li><li>Documentation — <a href="https://cxjs.io/docs">cxjs.io/docs</a></li><li>Widget &amp; Theme Gallery — <a href="https://cxjs.io/gallery">cxjs.io/gallery</a></li><li>Fiddle — <a href="https://cxjs.io/gallery">cxjs.io/fiddle</a></li><li>Starter Demo — <a href="https://cxjs.io/starter">cxjs.io/starter</a></li></ol><p>All applications are based on modern technologies such as CxJS itself, React, TypeScript, Babel and webpack. The output is made out of static resources only, such as images, CSS and JS files.</p><p>In case of a composite website like this, there are two options. Either to use a sub-directory for each app or to use a sub-domain. Each option has its pros and cons.</p><p>If sub-directories are used, everything gets published at once. That means, for example, that Documentation gets published even if there is only a small change in Gallery. An additional git repository is needed to collect outputs of all applications and special routing rules are required. The good news is that you manage only one domain with one https certificate. The hosting service is probably charging per domain, so this approach is much cheaper in the end and you can add more sub-directories along the way.</p><p>I would recommend using sub-domains if you have only one app besides homepage. It’s cleaner. Different parts can be published and controlled separately. On the bad side, it’s more work for you if you’re managing certificates by yourself. If you’re using a paid service, this will also cost more.</p><h4>surge</h4><p>We use <a href="http://surge.sh/">surge.sh</a> regularly to share stuff so it was natural to try surge first. Surge offers a number of cool features, but the highlight is the command line interface (CLI) which allows you to publish something in a matter of seconds. This also works well with build servers, as it’s possible to authenticate using a token.</p><p>We used Surge during development to test our Homepage and that went well. At that point, we were not sure if we’re going to use sub-directories or sub-domains. After investigating more, we figured out that Surge would not fully support client side routing for sub-directories approach. Surge enables top-level client-side routing using /200.html file, but this approach doesn’t work for a sub-directory, e.g. /docs/200.html.</p><h4>Netlify</h4><p>After investigating a little more, we found <a href="https://www.netlify.com/">Netlify</a>. This is the most extensive service we found and probably the best choice, even if we didn’t end up using it in the end.</p><p>Netlify offers a number of great features such as Free SSL, complex redirect/rewrite rules, GitHub/GitLab build integration, SEO optimization through pre-rendering. The basic plan covers all this and costs $9/month.</p><p>What went wrong? The first problem we encountered was related to using a naked domain — cxjs.io. Netlify recommends using a sub-domain, such as www.cxjs.io. Naked domains are also supported, but your DNS provider must support so-called ALIAS records (CNAME records on the root level). After receiving great support from Netlify and trying out a couple of DNS providers, we ended up using CloudFlare for DNS, which is a story for itself.</p><p>The second issue is related to caching. Netlify caching is based on ETAG, which means that the browser will cache the content, but it must validate it next time it wants to use it. This works great as you see your changes instantly after publishing and you can also rollback to a previous version. However, our needs are slightly different. We use webpack with filenames configured for long-term caching. If contents change, the hash in the filename also changes, so there is no point to validate the content.</p><p>We also experienced performance problems with Netlify on two occasions, so we decided to explore other options.</p><h4>CloudFlare</h4><p>We didn’t really use <a href="https://www.cloudflare.com/">CloudFlare</a>, but it deserves to be mentioned. Once we switched to CloudFlare DNS, all our content was suddenly served from CloudFlare CDN. It took some time to figure out how to bypass CloudFlare CDN. In the end, we were wondering if we did the right thing. CloudFlare offers a number of amazing services designed to improve performance of your website. We could have left our Germany-based server and use CloudFlare proxy on top of it. That would have worked well too.</p><h4>Firebase</h4><p>In the end, we decided to use <a href="https://firebase.google.com/">Google Firebase</a>. Firebase provides the best mix of features we were looking for.</p><ol><li>CLI deployment</li><li>Free HTTPS certificate</li><li>Advanced redirect/rewrite rules</li><li>Custom HTTP header rules for long term caching</li><li>Amazing infrastructure</li></ol><p>Some things were better with Netlify though:</p><ul><li>Firebase deploys might be slow for large websites. Full upload is required each time.</li><li>Old deployments are kept forever and might pile up over the limit if you publish frequently (using a build server)</li><li>No content pre-rendering</li></ul><h4>Conclusion</h4><p>I would recommend all four services mentioned here. I like the simplicity of Surge, advanced features of Netlify and advanced content serving options of Firebase. CloudFlare is a great solution for optimizing many aspects of your (static or dynamic) website. What you end up using depends on your requirements. It’s worth mentioning that all services offer a generous free tier which you can use to experiment.</p><p><em>If you’re building advanced JavaScript applications, check out </em><a href="https://cxjs.io/"><em>CxJS</em></a><em>. Form widgets, data grid, charts, client-side routing, advanced layouts, and many other features are available out of the box.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=193c9b0dca0e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/a-short-journey-through-the-world-of-static-web-hosts-193c9b0dca0e">A short journey through the world of static web hosts</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Themes]]></title>
            <link>https://medium.com/codaxy/themes-f289d3f5f8?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/f289d3f5f8</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[cx]]></category>
            <category><![CDATA[theming]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Wed, 11 Jan 2017 12:32:22 GMT</pubDate>
            <atom:updated>2017-01-12T14:27:30.557Z</atom:updated>
            <content:encoded><![CDATA[<p>In the last couple of weeks, we worked hard on new themes for Cx and this post will provide answers to some of the questions we faced so far.</p><h4>What is a theme?</h4><p>Initially, we wanted Cx package to ship only widgets. The host application would have to provide global CSS rules for reset, typography, layout, helpers, etc. This is provided by Bootstrap and other CSS frameworks.</p><p>Each theme is presented using a separate application. We didn’t want to use an external framework, and we decided to put additional stuff in Cx. Cx now includes extra CSS rules which can be used to reset default CSS values across browsers, set-up typography and define other global rules. Besides that, Cx also contains Section and FlexBox widgets which can be used to create basic layouts. This is a minimal set of changes required to build simple applications such as theme previews. This is, of course, optional and you may use your favorite CSS framework for these things — for example, <a href="http://tachyons.io/">tachyons</a> seems interesting.</p><p>Now we can answer the question. A theme is a set of styles that define the appearance of Cx widgets with an optional set of global CSS rules used to unify default values across browsers, define typography and set other defaults.</p><h4>How themes work?</h4><p>Cx themes are based on Sass. Sass is a language that provides advanced CSS authoring mechanisms such as variables and mixins. Variables contain measures, colors and other reusable values used to define a certain visual aspect of a theme. Variables are passed to mixins to produce actual CSS. Each Cx component has Sass mixin and an optional set of variables. Component mixins may be invoked multiple times with different values to generate a different appearance of the same component.</p><p>Cx sets all variables to default values, what is known as Core theme. Other themes redefine values of the variables and use the same mixins to generate CSS. Only variables need to be changed to create new themes or tweak existing ones.</p><p>If you’re interested in learning more how all this works, you can read this article from our <a href="http://cx.codaxy.com/v/master/docs/concepts/css">documentation</a>.</p><h4>Which themes are available?</h4><p>There’s now <a href="https://cx.codaxy.com/themes">a new page dedicated to themes</a> where you can explore themes in depth. Besides the default appearance of Cx widgets (Core theme), there are two new themes: Dark and Frost.</p><p>Dark themes are commonly used for development tools and financial applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/806/0*-FCoaYz4fffOOUEi.png" /></figure><p>Most programming environments provide a dark theme as it eases the strain on the eyes after an extended period of use. For example, Visual Studio, Webstorm, and Atom feature such themes.</p><p>Cx Dark theme is inspired by <a href="https://store.codaxy.com/Themes/Carbon6">Carbon theme for Ext JS</a>, and it was first implemented in <a href="https://mstijak.github.io/tdo/#fukk19x">tdo</a>, our task management demo application.</p><p>In this time of year, winter is a direct inspiration. Frost theme uses light colors and round borders to transfer the winter feel into your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/0*r0Vp3mE7b0jbH3wK.png" /></figure><p>Frost theme is inspired by our <a href="https://cx.codaxy.com/starter/">Starter Kit</a> project.</p><h4>Installing themes</h4><p>Themes are available as NPM packages.</p><p>To install a theme in your Cx application, first install the theme package using npm or yarn and then redirect Sass imports to the newly installed theme.</p><pre>npm install cx-theme-dark -S</pre><p>Change the theme by replacing</p><pre>@import &quot;~cx-core/src/variables&quot;;<br>...<br>@import &quot;~cx-core/src/index&quot;;</pre><p>with</p><pre>@import &quot;~cx-theme-dark/src/variables&quot;;<br>...<br>@import &quot;~cx-theme-dark/src/index&quot;;</pre><p>That’s it. Your application should now look different.</p><h4>Icons</h4><p>One of the questions that popped up was how to handle icons. Each application uses a different set of icons which appear in widgets such as buttons or input fields. After reading <a href="https://css-tricks.com/creating-svg-icon-system-react/">Creating an SVG Icon System with React</a> on CSS-Tricks, it became apparent that this is a perfect approach for Cx.</p><p>We decided to create an extension point where each application can define how to render its icons and Cx uses that to put icons inside Cx widgets. This approach makes it easy to integrate icons coming from icon fonts like <a href="http://fontawesome.io/">FontAwesome</a>, to use png or SVG. An icon is just a React component.</p><p>For example, to implement FontAwesome icons in your application, use the following snippet:</p><pre><strong>import </strong>{ VDOM } <strong>from </strong>&#39;cx/ui&#39;;<br><strong>import </strong>{ Icon } <strong>from </strong>&#39;cx/widgets&#39;;<br><br>Icon.<em>registerFactory</em>((name, props) =&gt; {<br>    props = { ...props };<br>    props.className = `fa fa-${name} ${props.className || &#39;&#39;}`;<br>    <strong>return </strong>&lt;i {...props} /&gt;<br>});</pre><p>You can now use icons as simple as this:</p><pre>&lt;Button icon=&quot;search&quot;&gt;Search&lt;/Search&gt;</pre><h4>What’s next?</h4><p>Although Cx is now feature-complete, we want to add more muscle, like a couple of new themes and some nice to have widgets. Stay tuned.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f289d3f5f8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/themes-f289d3f5f8">Themes</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your First Cx Chart]]></title>
            <link>https://medium.com/codaxy/your-first-cx-chart-629bd6c5a628?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/629bd6c5a628</guid>
            <category><![CDATA[3d]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[charts]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Wed, 30 Nov 2016 19:52:30 GMT</pubDate>
            <atom:updated>2016-12-01T13:10:59.447Z</atom:updated>
            <content:encoded><![CDATA[<p>This post explains first steps required to start creating charts using Cx.</p><p>With the help of <a href="http://cx.codaxy.com/fiddle/?f=iGm7ClM6">Cx Fiddle</a>, we’re going to create a chart which presents Google stock price over the last two years.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*fLtzxxqPbr5vR2wFeGMgHw.png" /></figure><p>First, we need some data. <a href="https://finance.yahoo.com/quote/GOOG/history?p=GOOG">Yahoo Finance</a> offers historical data and allows CSV file download. CSV file <a href="http://www.csvjson.com/csv2json">can be easily converted</a> to JSON, which can then be added to the fiddle (Data tab).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/342/1*qJ9-aaPSFm7rKanu9GQOrg.png" /></figure><p>With the data ready, we can start implementing the chart. Check the code snippet below.</p><pre>//imports omitted</pre><pre>export const App = &lt;cx&gt;<br> &lt;div&gt;<br>  &lt;Svg style=&quot;width:100%;height:300px&quot;&gt;<br>      &lt;Chart <br>        margin=&quot;10 20 50 50&quot; <br>        axes={{<br>          x: { type: TimeAxis, snapToGrid: 0 },<br>          y: { type: NumericAxis, vertical: true,format: &#39;currency&#39;}            <br>        }}        <br>      &gt;<br>        &lt;Gridlines /&gt;        <br>        &lt;LineGraph <br>          name=&quot;GOOG&quot; <br>          data:bind=&quot;data&quot; <br>          xField=&quot;Date&quot; <br>          yField=&quot;Close&quot; <br>          colorIndex=&quot;4&quot; <br>          area /&gt;<br>      &lt;/Chart&gt;<br>    &lt;/Svg&gt;<br>    &lt;Legend /&gt;<br> &lt;/div&gt;<br>&lt;/cx&gt;</pre><p>Cx charts are based on SVG, so we start with an Svg element. The Svg is set to full width and 300px height. Inside, there is a Chart element with two axes. TimeAxis is used to map dates to the <em>x</em> axis and <em>NumericAxis </em>is used to map price points to the vertical <em>y</em> axis. The Chart has a margin which leaves enough room for displaying axis labels.</p><p>Inside the Chart element, Gridlines are used to render horizontal and vertical gridlines; LineGraph is used to render the graph. xField and yField point to properties inside the data array which hold values for <em>x</em> and <em>y</em> axis. <em>colorIndex </em>and <em>area </em>are additional instructions to make the graph look a little bit nicer.</p><p>The Legend widget is used to render chart’s legend by picking up any visible element inside it containing the name attribute. Please note that the Legend is put outside the Svg widget. That’s because Legends are not based on SVG.</p><p>That’s all. We have <a href="http://cx.codaxy.com/fiddle/?f=iGm7ClM6">a working chart</a>. It seems that GOOG price is relatively stable lately.</p><p>This is just a tiny bit of what Cx charting package is capable of. For more examples please check out <a href="http://cx.codaxy.com/v/master/docs/charts/line-graphs">Cx Docs</a> and <a href="https://cx.codaxy.com/starter/dashboards/sales">Cx Starter Kit</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=629bd6c5a628" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/your-first-cx-chart-629bd6c5a628">Your First Cx Chart</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[New Widgets + Black Friday]]></title>
            <link>https://medium.com/codaxy/new-widgets-black-friday-c677dad55c1b?source=rss-c055554ab752------2</link>
            <guid isPermaLink="false">https://medium.com/p/c677dad55c1b</guid>
            <category><![CDATA[css]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[reactjs]]></category>
            <category><![CDATA[cx]]></category>
            <category><![CDATA[widget]]></category>
            <dc:creator><![CDATA[Marko Stijak]]></dc:creator>
            <pubDate>Fri, 25 Nov 2016 15:01:46 GMT</pubDate>
            <atom:updated>2016-11-25T15:01:46.295Z</atom:updated>
            <content:encoded><![CDATA[<p>We have two top priorities for <a href="http://cx.codaxy.com/">Cx</a> at the moment. Cx should be more mobile friendly, and we need a couple of out of the box themes. While there is still a lot of work ahead of us, many things are already implemented, and this post will offer a glimpse of what’s coming.</p><h4>FlexBox</h4><p>This is a new widget that simplifies the creation of responsive, flex-box based, layouts. This is not a solution for every scenario, but this simple widget will probably cover 90% of layout requirements for any application.</p><p>There are many configuration options which control spacing between items, breaking into multiple rows, horizontal and vertical alignment, etc.</p><p>Flex-box layouts have an advantage over traditional (percentage based) layouts as they allow for the natural size of the content. That means that when such behavior is desired, the layout will auto-arrange based on what’s inside.</p><p>Consider the three grids below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gXD-1SJ4lkCxtwYG2sOzAQ.png" /></figure><p>On a very large desktop monitor, all three grids are shown side by side. On a slightly smaller screen, these three grids will break into two rows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6MZDXmUJbBO5BLCxkT5EbA.png" /></figure><p>The last grid stretches to take the full width. With a table-like content, that’s probably fine, but sometimes content should not be stretched, and, in that case, it’s the best to center the content.</p><p>The best bit is left as the last one. On tiny screens, flex-box is turned off and screen size dictates the width. Cx grids can be scrolled horizontally, so this works surprisingly well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/307/1*kKx15XijWcWq4Qs1Te6BoQ.png" /></figure><p><a href="http://cx.codaxy.com/v/master/docs/widgets/flex-box">Cx Docs</a> contains more information about the <a href="http://cx.codaxy.com/v/master/docs/widgets/flex-box">FlexBox</a> widget.</p><h4>Section</h4><p>The initial plan for flex-box layouts and sections was to leave them out of the framework. Each application should define its own layout and section style as this stuff is usually application specific. Some applications do not use sections at all.</p><p>With the introduction of themes, we changed our plan, and things like typography, color-scheme, and section styling are now part of each theme.</p><p>Sections allow custom content in headers and footers which is really convenient for dashboard applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7LmGXvMi-X1DFUTOhd3igA.png" /></figure><h4>Toasts</h4><p><a href="http://cx.codaxy.com/v/master/docs/widgets/toasts">Toasts</a> are small overlays which stack on top of the screen to present information messages and warnings to the user. Toasts are super useful for asynchronous flows. For example, we can inform the user that a background report generation job has completed or show a progress of a big file upload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*R_3vKs8lg4RZEu0awCXXcg.png" /></figure><p><a href="http://cx.codaxy.com/v/master/docs/widgets/toasts">Toasts</a> support arbitrary content inside which makes them convenient for quick actions. However, you can also apply them to present summarized data using tables and charts inside.</p><h4>Themes</h4><p>Please note that themes are far from ready. However, you can take a sneak peek of what’s coming at our <a href="http://cx.codaxy.com/v/master/themes">new theme explorer</a> page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zEX3pjL0jl4DRMGFFn7FRA.png" /></figure><h4>BlackFriday</h4><p>For our loyal readers and fans, we have prepared a special discount. If you’re interested, please visit our <a href="https://store.codaxy.com/Cx">online store</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c677dad55c1b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codaxy/new-widgets-black-friday-c677dad55c1b">New Widgets + Black Friday</a> was originally published in <a href="https://medium.com/codaxy">Codaxy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>