RadzionKit is the ultimate solution for developers looking to jumpstart their projects without the stress of complex setups. Designed as a comprehensive monorepo, it provides an integrated suite of tools for full-stack development, from a robust UI library to streamlined backend services. With RadzionKit, you save valuable time both in kicking off new projects and during the development process, ensuring a smooth, efficient, and hassle-free coding experience. Embrace the power of simplicity and efficiency with RadzionKit — your partner in transforming coding challenges into coding triumphs.
RadzionKit takes advantage of Yarn Workspaces to streamline a monorepo setup, organizing code into two primary directories: lib
and product
. The lib
folder houses generic code packages like @lib/utils
or @lib/ui
, designed to be project-agnostic and easily portable to any project without carrying over project-specific logic. On the other hand, the product
directory houses example implementations, such as @product/api
or @product/ui-demo
, that serve as blueprints demonstrating how to integrate and adapt the @lib
packages to the unique needs of your project. This thoughtful architecture not only streamlines the development process but also enhances the reusability of code, making it effortless to scale and modify your project as it grows.
- @lib/utils - A collection of utility functions for common tasks.
- @lib/ui - A versatile UI library with components, hooks, and utils.
- @lib/dynamodb - Utilities for working with AWS DynamoDB.
- @lib/dnd - Components and utilities for drag-and-drop functionality.
- @lib/codegen - Code generation utilities for TypeScript and JSON files.
- @lib/countries - Types and utilities for handling country-related data.
- @lib/lambda - Utilities for working with AWS Lambda functions.
- @lib/analytics-ui - Components to integrate Amplitude analytics into your React application.
- @lib/auth - Types for authentication sessions and OAuth providers.
- @lib/next-ui - Components and utilities for Next.js applications.
- @lib/subscription-ui - Components for subscription payments.
- @lib/subscriptions - Types for subscription payments.
- @lib/chain - Utilities for working with Web3 and blockchain.
- @lib/chain-ui - Components for Web3 applications.
- @product/api - A boilerplate API with user authentication.
- @product/api-interface - Interfaces and types for interacting with the API.
- @product/api-ui - React hooks and components for API interaction.
- @product/config - A shared configuration package for the product.
- @product/db - Database management and utilities.
- @product/email - Email-related services and utilities.
- @product/email-forwarder - A Lambda function for forwarding emails.
- @product/entities - Core entities and models for the product.
- @product/entities-utils - Utility functions for working with entities.
- @product/languages - Language support and localization utilities.
- @product/languages-next-ui - Next.js UI components for language handling.
- @product/ui-demo - Demo UI showcasing product components.
- infra - Terraform infrastructure for the product.
Initiate your project using RadzionKit from our GitHub template. The demo
folder serves as a practical example, showcasing package integration — rename it to reflect your project's name or remove it if you prefer to start fresh. Update any @product
references to @{project_name}
, install dependencies with yarn
, and your setup is complete.
Select the @lib
packages you require from RadzionKit and copy them into your monorepo. Be sure to include all associated dependencies; for example, if you choose @lib/ui
, check if it necessitates @lib/utils
and copy it as well. There's no need for renaming—these packages are designed to work out of the box. For practical examples of how these packages can be used within an application, refer to the implementations in the demo
folder. After incorporating the desired packages, run yarn
to install the dependencies, and your monorepo will be equipped with the versatile features of RadzionKit.
- For NextJS Projects Only: Update your
_document.tsx
file by extending theStyledComponentsDocument
from the@lib/next-ui
package, in order to integrate support for thestyled-components
library used in the@lib/ui
package.
import { StyledComponentsDocument } from '@lib/next-ui/StyledComponentsDocument'
class MyDocument extends StyledComponentsDocument {
// ...
}
- For NextJS Projects Only: Update your
next.config.js
to setstyledComponents
totrue
in the compiler options for proper styling, and include your UI package intranspilePackages
to ensure Next.js correctly compiles and includes the UI package from the monorepo.
const nextConfig = {
// ...
compiler: {
styledComponents: true,
},
transpilePackages: ['@lib/ui'],
}
- Add a
styled.d.ts
to your project and include the following content to integrate RadzionKit's theme withstyled-components
' default theme:
import 'styled-components';
import { Theme } from '@lib/ui/theme/Theme';
declare module 'styled-components' {
export interface DefaultTheme extends Theme {}
}
- Add
persistentState
File for Local Storage Interaction: Place apersistentState
file in thestate
folder of your app package to enhance local storage interaction. For detailed guidance, refer to this YouTube video: Understanding Persistent State in React.
import { TemporaryStorage } from '@lib/ui/state/TemporaryStorage'
import { LocalStorage } from '@lib/ui/state/LocalStorage'
import { createPersistentStateHook } from '@lib/ui/state/createPersistentStateHook'
import { createPersistentStateManager } from '@lib/ui/state/createPersistentStateManager'
export enum PersistentStateKey {
ThemePreference = 'themePreference',
}
const persistentStorage =
typeof window !== 'undefined'
? new LocalStorage<PersistentStateKey>()
: new TemporaryStorage<PersistentStateKey>()
export const usePersistentState =
createPersistentStateHook<PersistentStateKey>(persistentStorage)
export const managePersistentState =
createPersistentStateManager<PersistentStateKey>(persistentStorage)
- Implement
ThemeProvider
andGlobalStyle
in Your App: In your application, use theThemeProvider
from RadzionKit to manage theme changes and store user preferences with theusePersistentState
hook. Include theGlobalStyle
component to apply global CSS styles, such as font family and custom scrollbars, ensuring a consistent look and feel across your app.
import { GlobalStyle } from '@lib/ui/css/GlobalStyle'
import { Inter } from 'next/font/google'
import { PersistentStateKey, usePersistentState } from '@product/ui-demo/state/persistentState'
import { ThemePreference } from '@lib/ui/theme/ThemePreference'
import { DarkLightThemeProvider } from '@lib/ui/theme/DarkLightThemeProvider'
const inter = Inter({
subsets: ['latin'],
weight: ['400', '500', '600', '800'],
})
export const App = () => {
const [theme, setTheme] = usePersistentState<ThemePreference>(
PersistentStateKey.ThemePreference,
'system',
)
return (
<DarkLightThemeProvider value={theme} onChange={setTheme}>
<GlobalStyle fontFamily={inter.style.fontFamily} />
// ...
</DarkLightThemeProvider>
)
}
To upgrade to the latest version of Yarn, run the following command:
yarn set version stable
To upgrade every dependency to the latest version, run the following command:
yarn workspaces foreach --all exec yarn up "*"
- Radzion's Resume: A Web3 Front-end developer resume. Source code available on GitHub.
- Pentafret: A website with guitar music theory tools. Source code available on GitHub.
- Increaser: A productivity toolkit designed for remote workers.
- GeorgianCitizen: An exam prep app. Source code available on GitHub.
To maximize your experience with RadzionKit, we've compiled the RadzionKit Cookbook, a series of YouTube tutorials designed to showcase the toolkit's practical applications in solving everyday development challenges. These tutorials cater to all skill levels, from beginners to experienced developers, and cover a range of topics from initial setup to advanced integrations. The RadzionKit Cookbook videos are an invaluable resource, offering step-by-step instructions, practical tips, and expert insights, all aimed at helping you harness the full power of RadzionKit for efficient, elegant solutions in your development projects.
- Build a Single-Page Resume with React & TypeScript (Exportable as PDF!)
- How to Create an Effective "What's New" Feature for Your Product
- Master Drag-and-Drop with dnd-kit: Kanban Board Tutorial
- Efficiently Delete Inactive User Data Using TypeScript and AWS Lambda
- Creating a DayInput Component with React and TypeScript for Date Selection
- Implementing a Custom Dropdown Component in React with TypeScript and Floating-UI
- Next.js & Amplitude: A Guide to Effective Analytics Integration
- How to Build a Community-Driven Feature Proposal System with React & NodeJS
- Effortless Email Setup on AWS: Save Time and Money with Lambda and Terraform
- Creating an Interactive Time-Tracking Report with React and TypeScript
- How to Create an Effective Onboarding Flow in React: A Step-by-Step Guide
- Creating a Drag-and-Drop Todo List in React: A Complete Tutorial
- Creating a React Line Chart Component from Scratch
- Building a website landing page in TypeScript monorepo: A Developer's guide
- Simplifying TypeScript Backend Development: A Comprehensive Guide
- Building Internationalization in a Static NextJS Application Without External Libraries
- NextJS Meta Tags Guide: SEO & PWA Icons
- Creating a Reusable Combobox with React and TypeScript
- Auto-Generating TypeScript for Dynamic React Components: A Deep Dive
- Building a Subscription Payments System with Next.js & Node.js
- Creating a Responsive and Minimalistic Modal Component in React
- Magic Link Email Authentication for NextJS + NodeJS Applications
- Maintaining React State in a URL Query String with NextJS
- Full-Stack Implementation of OAuth 2 Authentication (Google & Facebook) with NextJS and NodeJS
- Creating Different Layouts for Different Pages in NextJS
- Efficient React State Management with usePersistentState and Local Storage
- Useful CSS Utils for React Projects - A Practical Guide
- Essential Utilities & Helper Functions for TypeScript Projects
- How to Set Up a Monorepo with Yarn Workspaces, NextJS, Styled Components, Prettier
- Deploying a NextJS Static App to AWS S3 and CloudFront
- Designing a Color Palette for Dark and Light Modes with React, Styled Components and HSLA
- HSLA Color Format for React: TypeScript, Styled Components, Variants, Colors Generator, Color Picker
- Advanced React Button Component Tutorial
- How To Make Tooltip React Component with Arrow using Floating UI
- Copy Text to Clipboard on Click React Component
- How To Make Popover Menu React Component With Floating UI
- How To Make Emoji Input Menu React Component with Emoji Mart
- How To Make Hover Effect Overflow Its Container with React
- How To Make Slider Component with React & Style Range Input
- Building Versatile React Components: Cards and Panels
- Efficient CSS Layouts with Stack Components
- Dynamic Form with react-hook-form useFieldArray
- Infinite Scroll Component with React Query
- A Deep Dive into React: useElementSize Hook and Resize Observing