Here is an example of a React project configured with Protocode:
https://github.com/protocode-tech/react-template
In addition to the typical React + NextJS project files, it contains a .protocode
directory that holds all the configuration:
└── react-template/
├── .protocode/
│ └── docker-compose.yml
│ └── lifecycle/
│ └── preUp.sh
│ └── postUp.sh
│ ... Rest of the files
preUp.sh
file installs the dependencies in the node_modules
folder, and the postUp.sh
file installs the official TypeScript extension for VSCode.In a similar project, you can either:
.protocode/docker-compose.yml
. Then, in the "Initialization" section, under "Before container build", place .protocode/lifecycle/preUp.sh
, and under "After container build", place .protocode/lifecycle/postUp.sh
..protocode/docker-compose.yml
into the form field. Then, in the "Initialization" section, under "Before container build", paste the content of .protocode/lifecycle/preUp.sh
, and under "After container build", paste the content of .protocode/lifecycle/postUp.sh
.