Welcome to Doh! This guide will help you get your first Doh webserver up and running, explain what happens under the hood, and show you how to start customizing your project. Whether you're new to Doh or just want a quick refresher, you'll find everything you need to launch your first app.
If you haven't already, install Doh globally:
Windows:
powershell -c "irm deploydoh.com/install.ps1 | iex"
Mac/Linux/Unix:
curl -fsSL https://deploydoh.com/install | bash
Navigate to the folder where you want your project, then run:
doh init webserver
This command scaffolds a complete Doh webserver project, including:
index.html
and style.css
(editable homepage and styles)pod.yaml
(instance configuration)boot.pod.yaml
(project configuration).gitignore
(ignores build, config, and dependency files).vscode/
(VSCode launch configs and extension recommendations)Tip: If
.gitignore
or.vscode/
already exist, Doh will merge or update them with sensible defaults for Doh projects.
Start your new app with:
doh run
Visit http://localhost:3000 in your browser. You should see a welcome page confirming your Doh webserver is running.
Open index.html
in your editor. Change the main heading or any text, then save the file. Your browser will update instantly—no refresh needed—thanks to Doh's built-in Hot Module Replacement (HMR).
Example:
<h1 class="gradient-text">
<div>Hello, Doh!</div>
<div>My First App</div>
</h1>
oven.bun-vscode
).Doh is more than just a webserver. Here are some things you can try next:
Create a new module or component:
doh init wizard
This launches an interactive wizard to help you build your first Doh module.
Add dynamic routes or APIs: See the Express Guide for unified HTTP and WebSocket routing.
Work with databases: Explore Dataforge and Database Integration.
Set up SSL and custom domains: Check out Greenlock SSL for automatic HTTPS.
Deploy to production: See Quick Oracle VM Guide for a full cloud deployment walkthrough.
pod.yaml
(browser_pod.hmr.enabled: true
).doh help
for CLI options, or visit the Doh documentation.Congratulations! You're ready to start building with Doh. 🚀