A Visual Studio based Development Container for CIS2723.
The following technologies are used:
Is a platform for developing, shipping, and running applications in lightweight, portable containers. Containers package an application and its dependencies, ensuring it runs consistently across environments—whether on a developer’s laptop, a test server, or in production.
(VS Code) is a lightweight, open-source code editor developed by Microsoft. It’s designed for modern development workflows, offering built-in support for multiple programming languages, debugging, and version control.
Ubuntu 22.04 (Jammy Jellyfish) is a long-term support (LTS) release of the popular Linux distribution, supported until April 2027. It’s designed for both desktop and server use, combining stability, performance, and modern features.
You will be required to install the following on your system in the order listed below. Click the links and follow the instructions for your operating system.
The development environment contains the base development configuration for CIS2723. This includes all the directories for tutorials as well as the following configurations for the following languages:
- Pip (A Python Package manager)
The following Visual Studio Code Extensions are installed by default with the development container.
- xdebug.php-debug
- ms-python.debugpy
- ms-python.python
- tiansin.php-debug
- zhang.markdown-all-in-one
- shd101wyy.markdown-preview-enhanced
The debugging for both JavaScript, PHP and Python have already been configured for you.
Visual Studio Code. If the extensions have been installed correctly you should see an icon in the bottom left, this is the Remote-View. Press this icon and the action menu will appear, select the option Open folder in Container. Navigate to where the extracted the directory earlier and press open.
You should see something similar happen in the animation above. Essentially, this is automatically configuring your development environment for you!
Below is a getting started YouTube Video provided by Microsoft Visual Studio Code.
To test your JS
and PHP
using unit tests, you will use an appropriate testing framework Mocha
and Phpunit
. To use these command line interface (CLI) tools with in the development container open up a new terminal (remembering to choose bash as the terminal shell) pane and enter the following:
- For JavaScript (
.js
) files:mocha <path-to-unit-test-code>
- For PHP (
.php
) files:phphunit <path-to-unit-test-code>
Replacing <path-to-unit-test-code>
with the path to the file containing the unit test code. Please refer to the Web Teaching Environment for more information on how to use these tools.