In this article, I will walk you through how to implement a micro frontends app with single-spa and module federation in Webpack.
Here is the final codebase on GitHub:
Micro frontends have been around since 2016 in front end developments. In a nutshell, the idea of micro frontends is to break down the monolith app into smaller, easier to build, and more maintainable pieces.
That allows you to:
In this article, I will walk you through how to implement GraphQL subscriptions with Go.
Required dependencies are as follows:
GraphQL subscriptions enable you to fetch data periodically without polling from clients. Subscriptions maintain an active connection via WebSockets and get you notified immediately after detecting updates.
In version 2, Redis provided a Pub/Sub feature that can decouple publishers and subscribers. By using this, the publishers can send messages to any number of subscribers on a channel without a knowledge of what subscribers there are.
In version 5, Redis provides a new feature called Redis…
This post will walk you through how to implement WebSocket using Go and React.
Required dependencies are as follows:
First, we will make an API server with the echo package.
Add the following code to main.go
:
It will respond to Hello, World!
at http://localhost:8080, like so:
This article will walk you through how to do test splitting with CircleCI and how to reduce the testing time in your app. It will also detail how to split frontend tests to improve the DX.
Here’s the final code base on GitHub:
To quickly start, we will use the create-next-app to set up the React app:
npx create-next-app test-app
After the installation, run the dev server by running this command:
yarn dev
You will see the welcome page:
In this post, I will show you how to do visual testing using reg-suit.
Your app could have countless different states in components and layouts. Then it will be tough to find every UI change and you will lose track of how they are supposed to look.
To avoid that, automatic UI testing is necessary for your workflow.
reg-suit is a visual testing tool that allows you to:
Here is the reference for the final codebase:
In this article, I will walk you through how to automate the installation of TypeScript typings in a package.json
.
TypeSync is a tool that allows you to install missing TypeScript typings.
When you execute the command, it will automatically add a typing package in the package.json
, like so:
In the previous post, I introduced how to implement Apollo Federation in the Go application.
In this post, I will walk you through the Managed federation feature in Apollo Federation.
Here’s the final codebase on GitHub. main
branch is a version of part-1. part-2
branch is used in this post.
Apollo Federation is an essential architecture that allows your organization to scale GraphQL API with multiple implementing services in one graph.
It has its own gateway server which handles the request from the client-side and executes incoming operations across the services, like distributes…
In this article, I will walk you through how to implement Apollo Federation in Go, with a simple example. Here’s the final code base on GitHub:
Apollo Federation is a technology that allows you to compose multiple GraphQL services into a unified data graph.
Apollo Federation can expose one graph for all of the data in service without experiencing heavyweight development or a large code base like a monolithic architecture.
It enables us to collaborate with multiple teams on shared data and to separate concerns to work on any features without interfering with each other.
The idea of this is…
TestCafe is an automatic E2E testing tool based on Node.js and supports a cross-browser platform.
In this article, I will show you how to do cross-browser testing with TestCafe on GitHub Actions.
Here’s the final codebase on GitHub:
To start, we use create-react-app
to set up the React app:
npx create-react-app testcafe-app --template typescript
After installation, run the dev server by running this command:
yarn start
You will see the welcome page:
In front-end development, Babel and polyfill have become indispensable. However, some people argue they’re symbolic of black boxification, and it’s hard to know how they’re working in the build process and the differences between them.
In this piece, I’ll walk you through how polyfill works in a Babel configuration.
Here’s the example codebase on GitHub:
We’ll use these dependencies in this piece.
@babel/cli@7.12.10
@babel/core@7.12.10
@babel/preset-env@7.12.11
core-js-compat@3.8.1
1. What's Babel? 2. What's a polyfill? 3. What are the differences between Babel and a polyfill? 4. The process of injecting a polyfill in Babel 5. Does Babel handle all polyfills? 6. Why…
Web Developer, TypeScript, React, React Native, Vue.js, Go, Swift, and Ruby on Rails https://manatoworks.me/