Iykwim DND app.
This repository sets up a development environment using Docker and VS Code DevContainers for developing with Python (Flask) and Svelte. The setup includes optional configurations to switch between SQLite and PostgreSQL databases.
- Docker
- Visual Studio Code
- Remote - Containers extension for VS Code
The development environment is defined using a Dockerfile
and docker-compose.yml
. The setup includes:
- Python with Flask and necessary dependencies.
- Node.js and npm for Svelte.
zsh
withoh-my-zsh
and the Powerlevel10k theme for a nice terminal experience.
- Open VS Code.
- Install the 'Dev Containers' extension -
ms-vscode-remote.remote-containers
- Restart VS Code
- Use the "Remote - Containers" extension to open the project in the container.
- Open Command Palette (
Ctrl+Shift+P
). - Search for something like
Reopen and rebuild in container
or select it on the notification you will get on the bottom right.
- Open Command Palette (
Info: The following commands will be run after the container is created to install the necessary dependencies:
- Python dependencies will be installed from
backend/requirements.txt
. - Node.js dependencies will be installed for the Svelte project in the
frontend
directory.
.devcontainer/devcontainer.json
: Configuration for the VS Code DevContainer..devcontainer/Dockerfile
: Dockerfile to build the development container.backend/
: Python backend project directory.frontend/
: Svelte frontend project directory.
If you encounter issues:
- Ensure Docker is running and you have the latest version.
- Ensure the Remote - Containers extension is installed in VS Code.
- Check the output in the terminal for any errors during the build process.
Feel free to open an issue if you have any questions or need further assistance.