All copyable terminal commands from the video.
Check that the Swift compiler works from the command line.
Application: Terminal
swift --version
cd ~/Desktop
mkdir MyCLI
cd MyCLI
swift package init --name MyCLI --type executable
swift run MyCLI
cd ../
rm -rf MyCLIDownload and compile Molecular Renderer.
Application: Terminal
cd ~/Desktop
git clone https://github.com/philipturner/molecular-renderer
cd molecular-renderer
bash install-libraries.sh
bash run.shInstall Swift through WinGet.
Application: Command Prompt
winget --version
winget install --id Microsoft.VisualStudio.2022.Community --exact --force --custom "--add Microsoft.VisualStudio.Component.Windows11SDK.22000 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64"
OR
winget install --id Microsoft.VisualStudio.2022.Community --exact --force --custom "--add Microsoft.VisualStudio.Component.Windows11SDK.22621 --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64"
winget install --id Swift.Toolchain -e
swift --versionCheck that the Swift compiler works from the command line.
Application: Git Bash
cd ~/Desktop
mkdir MyCLI
cd MyCLI
swift package init --name MyCLI --type executable
swift run MyCLI
cd ../
rm -rf MyCLIPrepare to test Swift in Visual Studio Code.
Application: Git Bash
cd ~/Desktop
mkdir MyCLI
cd MyCLI
swift package init --name MyCLI --type executableActually test Swift in Visual Studio Code.
Application: Visual Studio Code
swift run MyCLIDownload Molecular Renderer and install binary dependencies.
Application: Git Bash
cd ~/Desktop
git clone https://github.com/philipturner/molecular-renderer
cd molecular-renderer
./install-libraries.batCompile Molecular Renderer.
Application: Visual Studio Code
./run.bat