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 dev
This 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 polen
Create a
schema.graphql
file with your GraphQL schema:graphqltype Query { hello: String }
Add scripts to your
package.json
:json{ "scripts": { "dev": "polen dev", "build": "polen build" } }
Next Steps
- Edit
schema.graphql
to use your own GraphQL schema (Schema Reference) - Add your content as markdown in the
pages
directory (Pages) - Build and deploy your portal (Deployment (SSG), Deployment (SSR))