Skip to content

fern-demo/plantstore-demo-fern-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Plantstore Demo Fern Configuration

This repository contains your Fern Configuration:

Setup

npm install -g fern-api

Validating your API Definition

To validate your API, run:

fern check

Updating Documentation

Local Development Server

To run a local development server with hot-reloading you can run the following command

fern docs dev

Hosted URL

To update your documentation on a hosted URL, run

# npm install -g fern-api
fern generate --docs

To preview your documentation, run

# npm install -g fern-api
fern generate --docs --preview

The repository contains GitHub workflows that will automatically run these commands for you. For example, when you make a PR a preview link will be auto-generated and when you merge to main the docs site will update.

Managing SDKs

Deploying your SDKs

To deploy your SDKs, simply run the Release <sdk-language> SDK GitHub Action with the desired version for the release. Under the hood, this leverages the Fern CLI:

fern generate --group <sdk-language>

Developing SDKs

You can also regenerate the SDKs locally by running:

fern generate --group <sdk-language> --preview --log-level debug

About

The Fern configuration that generated SDKs and Docs for the Demo-Plantstore API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5