Get Started
Quick Start
The fastest way to get started with Polen is using the create command:
sh
npx polen create my-graphql-docs
cd my-graphql-docs
npx polen devThis will:
- Create a new Polen project with a working example
- Install all dependencies
- Start the development server
Your developer portal is now running at http://localhost:3000!
Manual Setup
Install Polen
shnpm init npm add polenCreate a
schema.graphqlfile with your GraphQL schema:graphqltype Query { hello: String }Add scripts to your
package.json:json{ "scripts": { "dev": "polen dev", "build": "polen build" } }
Adding Examples
Create an examples directory and add .graphql files:
graphql
# examples/hello.graphql
query HelloWorld {
hello
}Examples appear automatically on your home page. Learn more: Examples
Next Steps
- Edit
schema.graphqlto use your own GraphQL schema (Schema Reference) - Add your content as markdown in the
arbitrary-pagesdirectory (Arbitrary Pages) - Build and deploy your portal (Deployment (SSG), Deployment (SSR))