Skip to main content

Install, Run & Deploy

Prerequisites

  • Node.js version 16.14 or above: PS. When installing Node.js, you are recommended to check all checkboxes related to dependencies.

Generate a new site

Generate a new Docusaurus site using the classic template.

npm init docusaurus@latest my-website classic

Start dev server

cd my-website
yarn start

Build your site

Build your site for production (The static files are generated in the build folder):

yarn build

Deploy your site

Test your production build locally:

npm run serve

The build folder is now served at http://localhost:3000/.

You can now deploy the build folder almost anywhere easily, for free or very small cost (read the Deployment Guide).