2.1 KiB
2.1 KiB
Getting Started with FolderWeb
FolderWeb is designed to be the simplest way to publish content on the web. This guide will walk you through the core concepts and get you publishing in minutes.
Installation
FolderWeb requires PHP 8.4+ and Apache with mod_rewrite enabled.
Using Docker (Recommended for Development)
cd development
docker compose up
Visit http://localhost:8080 to see your site.
Manual Installation
- Point Apache's document root to the
/contentdirectory - Ensure the
/appdirectory is accessible at the same level - Enable
mod_rewritein Apache - That's it!
Creating Your First Page
The easiest way to understand FolderWeb is to create some content.
Create a Simple Page
- Create a new directory:
/content/hello/ - Add a file:
/content/hello/page.md - Write some Markdown:
# Hello World
This is my first page in FolderWeb!
Your page is now live at /hello/
Create an Article with Metadata
For richer content, add metadata:
- Create:
/content/articles/2025-11-01-my-article/ - Add metadata:
/content/articles/2025-11-01-my-article/metadata.ini
title = "My First Article"
date = "2025-11-01"
summary = "A brief description of my article"
- Add content:
/content/articles/2025-11-01-my-article/article.md
The date in the folder name is automatically extracted and displayed.
File Types
FolderWeb supports three content types:
- Markdown (
.md) - Write in Markdown, rendered as HTML - HTML (
.html) - Pure HTML for complete control - PHP (
.php) - Dynamic content when needed
File Naming Conventions
- Page content:
page.md,page.html,page.php - Articles/posts:
article.md,post.md,single.md(and.html/.phpvariants) - Frontpage:
/content/frontpage.php - Index override:
index.phpin any directory takes precedence
Next Steps
- Read the Templates Guide to customize your site
- Learn Markdown syntax for better content
- Explore the default templates in
/app/default/templates/