The Moderndev knowledge base platform, developed with Typescript, Next.js, Tailwind, DaisyUI & Firebase.
All static content is managed with Notion as a CMS for education content.
First, install Hugo Extended ver 0.101.0
or greater.
git clone <this-repo>
yarn add
yarn dev
Check it on http://localhost:3000/
.
Create a tsx file in the /components
directory.
"use client";
//type use client, if you want to use hooks
interface ComponentProps {
header: string,
//other props
}
export const DefaultComponent: React.FC<ComponentProps> = ({ header }) => {
return (
<div>{header}</div>
);
};
Export the component from component/index.ts
:
export * from './my-custom-component.tsx';
yarn start
: Starts the serveryarn dev
: Runs localhostyarn build
: Build for production
Each PR is deployed automatically by vercel, you can preview your changes.