Digital Coven is a Vite-powered React SPA, so the full local development workflow — from a fresh clone to a live browser preview — takes less than two minutes. The build system is standard Vite with no custom server configuration required; all you need is Node.js 18 or later and a package manager of your choice.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/digital-coven/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, make sure the following are available in your environment:- Node.js 18+ — Vite’s minimum supported version. Run
node -vto check. - npm, yarn, or pnpm — any of the three work without additional configuration.
- Git — to clone the repository.
The project was built and tested with Node.js 20 LTS. If you see peer-dependency warnings on older Node.js versions, upgrade to 20 LTS for the smoothest experience.
Full Setup Walkthrough
Install dependencies
Install all required packages. Choose the package manager you prefer — all three produce equivalent results:
Start the development server
Launch Vite’s dev server with hot module replacement enabled:Vite starts on port 5173 by default. Open http://localhost:5173 in your browser to see the full animated portfolio.
Build for production
When you’re ready to produce a deployable artefact, run:Vite bundles and minifies the application into the
dist/ directory. The output includes index.html, the pre-built assets/main.js and assets/main.css, and all pre-loaded component modules.Preview the production build
Before deploying, serve the The preview server also starts on port 4173 by default. Visit http://localhost:4173 to confirm everything looks correct.
dist/ output locally with Vite’s built-in preview server to verify the production bundle behaves identically to the dev server:Deploying to GitHub Pages
Digital Coven is configured for zero-configuration deployment to GitHub Pages or any static file host. Two mechanisms make this work:-
.nojekyll— A.nojekyllfile is committed at the repository root. This tells GitHub Pages to skip Jekyll processing, which would otherwise strip files whose names begin with an underscore (including Vite’s_prefixed chunk files). -
Hash-routing redirect script —
index.htmlcontains the following inline script that runs before React mounts:Because all navigation is hash-prefixed (/#/about,/#/projects, etc.), the static host only ever needs to serve the singleindex.htmlfile — no server-side rewrite rules or404.htmltricks are required.
After running
npm run build, copy the contents of dist/ (including .nojekyll) to your GitHub Pages branch or static hosting root. The app will serve correctly from any path depth.Available Scripts
| Command | Description |
|---|---|
npm run dev | Start Vite dev server on localhost:5173 with HMR |
npm run build | Bundle and minify to dist/ |
npm run preview | Serve dist/ locally on localhost:4173 |