Quick Start
Get Stradocs up and running on your local machine in minutes.
This guide will help you set up Stradocs on your local machine and start customizing it.
Prerequisites
Before getting started, make sure you have the following installed:
- Node.js v22 or later
- npm or pnpm
- Git
- A code editor, such as Visual Studio Code
Installation
-
Fork the Repository
Fork the Stradocs repository to your own GitHub account.
This allows you to create and manage your own version of the project.
-
Clone Your Fork
Clone your fork to your local machine:
git clone https://github.com/your-username/stradocs.git cd unloydReplace
your-usernamewith your GitHub username if necessary. -
Install Dependencies
Install the project dependencies using your preferred package manager.
npm installpnpm install -
Set Up Environment Variables
Copy the example environment file:
cp .env.example .envThen open
.envand configure the values you need.# Site PUBLIC_SITE_URL=http://localhost:4321 # Contact Form PUBLIC_FORM_ENDPOINT=https://formspree.io/f/your-endpointSee Configuration for a complete list of supported environment variables.
-
Start the Development Server
Start the local development server:
npm run devpnpm devOnce the server is running, open:
http://localhost:4321
Available Scripts
Stardux includes several npm scripts for development and production.
| Command | Description |
|---|---|
npm run dev |
Start the local development server |
npm run build |
Build the production site into the dist/ directory |
npm run preview |
Preview the production build locally |
If you use pnpm, replace npm run with pnpm.
For example:
pnpm buildNext Steps
Your local Stradocs installation is now ready.