Warning: Deprecated.
sudo add-apt-repository ppa:gitstream/gitstream
sudo apt-get update && sudo apt-get install gitstream
Download and access GitStream repository:
git clone https://github.com/uid/gitstream.git
cd gitstream
Install development dependencies:
- Node.js v22
- apt packages:
git nginx nodejs make
- MongoDB Community Edition
Build and install GitStream:
make install
Make sure certs are in their appropriate locations (see nginx-deployed.conf for the locations):
sudo service nginx reload
sudo -u gitstream pm2 start dist/server/main.js
- Download GitStream Excercises repository and place inside the root folder of GitStream.
- Install Vagrant.
- Add a new Vagrant box to your machine:
vagrant box add ubuntu/focal64
. - Ensure special configuration files are in the main directory:
gistream.pem
,settings.js
- Run test cases via
npm test
. - To locally test multiple users, comment out
openid
config insettings.js
.
-
Access the VM by entering the vagrant folder (
cd vagrant
) and runningvagrant up && vagrant ssh
. The first boot will be slow as the VM is being initialized. -
Once in the VM, head to the gitstream directory:
cd /opt/gitstream
. -
Whenever you edit the sourcecode, rebuild and restart the server by running
make run
. -
You can now view GitStream by navigating your browser to one of the exercises, e.g.: http://localhost:8000?theGitGo.
- MIT's OpenID is not friendly with VPNs. Make sure your VPN is disabled when accessing the GitStream webpage.