The cmu housing project is hosted at https://cmuhousing.com, however it is currently in alpha and lacks functionality in many regards. Take it as a demo of what the site will appear like, not an MVP.
First, make sure you have docker installed
Installing Docker (Ubuntu/WSL)
Follow the most up to date instructions at Docker's Official Installation Page for Ubuntu
Or alternatively run the following snippet bellow (from the installation page)
- Set up Docker's
aptrepository.
# Add Docker's official GPG key:
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt-get update-
Install the Docker packages.
$ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -
Verify that the installation is successful by running the
hello-worldimage:$ sudo docker run hello-worldThis command downloads a test image and runs it in a container. When the container runs, it prints a confirmation message and exits.
-
You may also need to add user to the docker group to get the correct permissions to run the program
$ sudo usermod -aG docker ${USER}Then restart your terminal
If docker is set up correctly, you can start the app by running run_local.sh
chmod a+x ./run_local.sh
./run_local.sh
Note you only have to run 'chmod' the first time you run 'run_local'
Open http://localhost:3000 with your browser to see the result.
If you are developing the app, we recommend you run dev_run_local.sh
chmod a+x ./dev_run_local.sh
./dev_run_local.sh
'dev_run_local' is a wrapper of 'npm run dev' which runs much quicker and allows changes to render instantly when saving the project