2. Setup#
Install Bialet#
The quickest way is the install script:
curl -sSL https://get.bialet.dev | sh
For other options (Homebrew, Docker, building from source), see Installation.
Create a project#
Make a new directory for your poll app:
mkdir poll && cd poll
Copy the vote.html and results.html files you downloaded in the
introduction into this directory.
Run the server#
bialet
Bialet starts on port 7001. Open 127.0.0.1:7001 in
your browser. For now you’ll see a directory listing — we haven’t created
any .wren files yet.
Using Docker#
If you prefer containers, clone the Bialet Skeleton and use Docker Compose:
git clone --depth 1 https://github.com/bialet/skeleton.git poll
cd poll
BIALET_DIR=/path/to/your/files docker compose up
Restarting#
On Linux, Bialet watches .wren files and reloads automatically. On macOS,
restart the server manually after changes (Ctrl+C then bialet again).
Previous: 1. Introduction | Next: 3. Your First Page