This project serves as an example for a project using DevContainers
Once the project is in your account, there are different ways you can set up this project. We will cover how you can set it up in GitHub Codespaces and in VS Code on your local machine.
You can set up this project to develop in GitHub Codespaces, where you can code, debug, and run your app remotely in a codespace. A codespace provides a fully configured development environment hosted in the cloud, eliminating the need for local setup. This environment includes your project's dependencies, tools, and extensions, ensuring a consistent and reproducible development experience. It streamlines collaboration by providing real-time editing, integrated version control, and easy access to debugging and testing tools, all while maintaining the security and reliability of your project.
Steps:
- Click on the "<> Code" button
- Click on the "Codespaces" tab
- Click on the "Create codespace on main"
You first need to set up your Python development environment. Specifically, this tutorial requires:
Python 3.11 (check the installation guide if you don't have it installed) Python extension for VS Code (For additional details on installing extensions, you can read Extension Marketplace).
It is recommended to use conda or env to isolate the python environment:
VS Code should have the following extensions:
- ms-python.python
- ms-python.vscode-pylance
- esbenp.prettier-vscode
- ms-python.black-formatter
- charliermarsh.ruff
- ms-python.debugpy
If you prefer to use DevContainer, you just need to install the DevContainer extension and all necessary extensions will be taken care for you. Follow the instructions from the DevContainer site.