Installing MakeAWiki
This guide will walk you through the process of installing MakeAWiki on your server.
Prerequisites
Before installing MakeAWiki, make sure you have the following:
- Node.js: Version 12 or higher
- npm or yarn: Package manager for Node.js
- Git: For cloning the repository (optional)
Installation Steps
- Clone the MakeAWiki repository:
git clone https://github.com/crizmo/MakeAWiki.git
cd MakeAWiki
- Install dependencies:
npm install
- Start the server:
node index.js
- Open your browser and visit
http://localhost:3000to access your wiki.
Creating Your First Content
- Create markdown files in the
pagesdirectory - Organize files in subdirectories to create a folder structure
- The homepage is
pages/home.md(this is what visitors will see first) - Files are accessible via their path, e.g.,
pages/folder/page.mdis accessible at/folder/page
Project Structure
After installation, your MakeAWiki project will have the following structure:
MakeAWiki/
├── index.js # Main application file
├── package.json # Package configuration
├── views/ # EJS templates
├── static/ # CSS, JavaScript, and other static files
└── pages/ # Your wiki content (markdown files)
Troubleshooting
If you encounter any issues during installation:
- Make sure your computer is connected to the internet
- Verify that Node.js and npm are properly installed
- Check if you have sufficient storage space (at least 50MB free)
- Check for errors in the terminal output
- Make sure all dependencies are being installed correctly
Common issues:
- "Port already in use" error:
- Change the port in the index.js file if port 3000 is already being used
- Or stop the process using that port and restart
- Module not found errors:
- Try deleting node_modules folder and running
npm installagain
If you continue to have problems, please visit our Support page for additional help.