This repository contains everything you need to create a standard development environment for your CMPUT 174 assignments. In addition to the development environment, a standard project structure has also been provided in which to write your solutions. Please refer to the instructions and videos below to setup your environment.
- Open the Windows Powershell as an Administrator by typing "PowerShell" into the Windows search bar, right-clicking "Windows PowerShell", and selecting "Run as administrator".
- Install WSL2 by running the command
wsl --install
in Windows PowerShell. - Once installation is complete, reboot your device.
- Upon reboot, an Ubuntu terminal should open automatically. If not, select "Ubuntu" from the start menu.
- You should see the message "Installing, this may take a few minutes...". Upon completion (this may take a while) you will be prompted to set your username and password.
- Update your Linux packages by running
sudo apt update && sudo apt upgrade
- Install Docker Desktop by following these instructions.
- To confirm your installation was successful, run the following commands in either Windows Powershell or an Ubuntu Terminal:
docker --version
docker run hello-world
Follow these instructions or seek TA's help if you see the following error message: Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.Ensure that virtualization has been enabled on your device.
- Installation instructions for both Linux and Mac can be found here.
- Install Visual Studio Code. Follow this link to download the installer for macOS, Windows, and Linux.
- Open Visual Studio Code.
- Refer to the video "Installing Dev Containers" below for a demonstration of the following instructions. Install the
Dev Containers
extension for Visual Studio Code. To do so, select theExtensions
menu from the panel on the left side of the window and enterDev Containers
in the search bar. Finally, click theInstall
button to add the extension to Visual Studio. - Refer to the video "Creating The Development Environment" below for a demonstration of the following instructions. Click the icon (typically blue or green) in the bottom-left corner of the window. In the menu that pops up, select
Clone Repository In Container Volume
and enter the URL of this repository (https://github.com/UAlberta-CMPUT174/cmput174-dev). - For a demonstration of setting the Python interpreter (should be set by default), running scripts, or restoring a previous session after closing Visual Studio Code, refer to the corresponding videos below.