IFDB and IFComp have public code available on Github.
They include README
instructions on how to set them up on your own computer, requiring you to install Docker on your local machine to launch the app in a Docker instance, in a virtual machine on your own computer.
That’s all well and good if you’ve got a nice, beefy computer, but several folks have said that their machines struggle to run an entire virtual machine locally.
Well, I recently became aware of just how easy it is to get IFDB and IFComp up and running on Github Codespaces.
Here’s how.
- Navigate to either IFDB or IFComp on Github.
- There’s a big green < > Code button on that page; when you click on it, it shows you a popup with two tabs, “Local” and “Codespaces.”
- Click on “Codespaces” and “Create codespace on main.”
- After you wait a bit, you’ll be in a new browser tab, with Visual Studio Code running. You can type commands in the “Terminal” tab on the bottom of the screen.
- In “Terminal,” follow the setup instructions the README.
- IFDB: That means running
./prepare_dev_environment.sh
and thendocker compose up --build
. - IFComp: Following the instructions in
CONTRIBUTING.md
, you’dcd IFComp-Dev
, rundocker compose build
and thendocker compose up
.
- IFDB: That means running
- After waiting, the app will launch, and you’ll see an alert “Your application running on port #### is available.” You can click the “Open in Browser” button there. If you miss the popup, you can click on the “Ports” tab and see the “Forwarded Address” link. You can click the little globe , and, lo and behold, the app will be up and running in a browser tab.
- Eventually, your codespace will automatically shut itself down for inactivity. (There’s a limit on the number of hours you’re allowed to keep a Codespace running for free.) When you’re done working, pop over to https://github.com/codespaces/, click the “…” menu next to your codespace, and click “Stop codespace.” You can use that page to find your codespace and open it again by clicking on the code space. (You’ll need to run
docker compose up
again to restart the app after you stop your codespace.)
Github Codespaces allows 15 GB free disk space per month (both the IFDB instance and the IFComp instance combined are well under that) and 120 hours per month.
Give it a try!