This repository contains the codebase for generating the Krakend Playground demo website using Next.js.
-
Install dependencies:
npm install
Create a .env
file in the root of your project with the following content:
NEXT_PUBLIC_KRAKEND_LICENSE_TYPE=enterprise
The NEXT_PUBLIC_KRAKEND_LICENSE_TYPE
environment variable can be set to either "enterprise"
or "open-source"
depending on which playground you want to generate.
To start the development server, you can use one of the following commands:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 in your browser to view the project.
To build the project, you can use the following command:
npm run build
This will generate an out
directory with the static HTML, CSS, and JavaScript files.
You can add or edit use-case demo pages by modifying the .mdx
files located in the pages/use-cases
directory.
To create a new use-case page, you can use the following structure in a .mdx
file:
import MdxLayout from '@/components/MdxLayout';
## About this demo
- One
- Two
- Three
export default function MDXPage({ children }) {
return <MdxLayout>{children}</MdxLayout>
}