This repo uses VSCode's Dev Containers extension to standardize the development environment and avoid headache-inducing installation. All development will happen inside a Docker container which installs the same dependencies and versions on every developer's machine.
-
Using Windows? First set up WSL 2.
- Press Windows
⊞
-> "Turn Windows features on or off". Enable "Windows Subsystem for Linux". - Open Powershell as admin.
wsl --install
wsl --set-default-version 2
wsl --install -d Ubuntu-22.04
wsl --set-default Ubuntu-22.04
- For more info: Microsoft documentation
- Press Windows
-
Install Docker Desktop.
- Windows users: Make sure you select Use WSL 2 instead of Hyper-V if the option is presented.
-
Open a new VSCode window and install Dev Containers extension from the Extensions menu.
-
Open the Command Palette (
Ctrl + Shift + P
/Cmd + Shift + P
) and selectDev Containers: Clone Repository in Container Volume...
. SelectGitHub
, then enterfsek/WWW-Web.git
. -
After configuration has finished in the open terminal, it should say
Done. Press any key to close the terminal
. -
Open a new Bash terminal (
Ctrl + Shift + Ö
) and run:npm run generate-api
and thennpm run dev
(backend application need to be active for both of these to work as wanted). -
Go to http://127.0.0.1:5173/ for the website where you can see the project🎉
-
From now on, whenever you want to open this project: Open a new VSCode window and in Recent, find
WWW-Web in a unique volume [Dev Container]
. Don't re-runClone Repository...
from step 3.