Installation

This guide covers different ways to install and set up eziwiki.
Method 1: Clone from GitHub (Recommended)
The easiest way to get started:
bash
# Clone the repository
git clone https://github.com/yourusername/eziwiki.git
# Navigate to the directory
cd eziwiki
# Install dependencies
npm install
# Start development server
npm run devMethod 2: Use as Template
- Go to the eziwiki GitHub repository
- Click "Use this template"
- Create your new repository
- Clone your new repository
- Install dependencies and start
bash
git clone https://github.com/yourusername/your-wiki.git
cd your-wiki
npm install
npm run devMethod 3: Download ZIP
- Download the latest release from GitHub
- Extract the ZIP file
- Open terminal in the extracted directory
- Install and run:
bash
npm install
npm run devSystem Requirements
- Node.js: 18.0 or higher
- npm: 9.0 or higher (or yarn 1.22+)
- OS: macOS, Windows, or Linux
- RAM: 2GB minimum
- Disk Space: 500MB for dependencies
Verify Installation
After installation, verify everything works:
bash
# Check Node.js version
node --version # Should be 18.0 or higher
# Check npm version
npm --version # Should be 9.0 or higher
# Run tests
npm run test
# Validate configuration
npm run validate:payloadProject Structure
After installation, you'll have this structure:
text
eziwiki/
āāā app/ # Next.js App Router
āāā components/ # React components
āāā content/ # Your Markdown files
āāā lib/ # Utilities and logic
āāā payload/ # Configuration
ā āāā config.ts # Main config file
āāā public/ # Static assets
āāā styles/ # Global styles
āāā package.json # DependenciesTroubleshooting
Node.js Version Error
If you see a Node.js version error:
bash
# Install nvm (Node Version Manager)
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
# Install Node.js 18
nvm install 18
nvm use 18Port Already in Use
If port 3000 is already in use:
bash
# Use a different port
PORT=3001 npm run devModule Not Found
If you see module errors:
bash
# Clear cache and reinstall
rm -rf node_modules package-lock.json
npm install