A student-run organization at Binghamton University created to foster a community of individuals who solve problems through the innovative use of technology.
The best way to run the HackBU website locally is to use a container provider like podman
or docker
. This allows you to isolate the necessary tools from your host system, preventing dependency conflicts and guaranteeing reproducibility across installations.
- Install your choice of provider, as well as
podman-compose
ordocker-compose
. - Clone the project directory
- Navigate to the project directory and run
podman compose up -d
. This will build and start the container. - In a browser, go to 127.0.0.1:4000 to interact with the site. Changes to the project directory will be reflected in the site.
- Run
podman compose down
in the project directory to stop the local server.
If you change the Gemfile or Gemfile.lock, find the name of the local image in podman image ls
and delete it with podman image rm image-name
before starting compose again.
In addition to cloning the HackBU repository, you'll need a few things to run HackBU locally:
-
Install the necessary dependencies to build Ruby: https://github.com/rbenv/ruby-build/wiki#suggested-build-environment.
-
Ruby - Ruby is a programming language powering our build tools. Ideally you should install the version in
.ruby-version
. On *nix, you can use asdf to manage Ruby versions:$ asdf plugin add ruby https://github.com/asdf-vm/asdf-ruby.git # From the project repo: $ echo "legacy_version_file = yes" > ~/.asdfrc $ asdf install
This will build Ruby and cause your fans to ramp up, so maybe don't do this in class.
-
Bundler - Ruby's package manager. Comes preinstalled with Ruby as
bundle
. -
Jekyll - Run the command
bundle install
in the project directory to download and install Jekyll. (Do not run this command as root, even if you have permissions issues)
You can start the Jekyll server with bundle exec jekyll serve --watch
. See the Jekyll documentation for more information.
Making a change to the website? Fork the repository (if you're not HackBU staff) and submit a pull request through GitHub!
A HackBU staff member will review the pull request, leave comments, and decide whether or not to merge.
Producing thumbnails for the photo galleries:
$ magick mogrify -resize 300x300^ -gravity Center -extent 300x300 -path $PATH_TO_THUMB_DIR *.jpg
The contents of this repository are released under the MIT License.
Contact [email protected] with questions.