The Beauty and Joy of Computing labs resource repository.
We have a simple directory structure for lab content.
The main "production" server for labs is hosted at Berkeley, here.
However, the repository is setup so that any fork can be run using GitHub pages.
The main BJC repo can be viewed in a live state, here, or you can use your own
fork by visiting the following url: http://[username].github.io/bjc-r/
, where you
replace [username]
with your GitHub account name.
While GitHub pages are convenient, you'll likely want to run your own web server to make debugging changes much more quick and easy. In order to view the labs, you'll need to have an Apache server running on your machine. Here are some simple instructions for a couple different platforms.
No matter the platform, you should server files from /bjc-r/
at the root of your
server.
- Run the following command to start the apache server.
sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist
NOTE: The Apache server will be persistent across restarts. - Copy the
/bjc-r
directory to/Library/WebServer/Documents/
(You may need administrator privileges to do this.) - Navigate to http://localhost/bjc-r in a browser.
- To stop the sever from running do:
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist