Working on an Existing Project
Foundry makes developing with existing projects have no overhead.
For this example, we will use PaulRBerg's foundry-template.
First, clone the project and run forge install inside the project directory.
$ git clone https://github.com/PaulRBerg/foundry-template
$ cd foundry-template
$ forge install
$ bun install # install Solhint, Prettier, and other Node.js depsWe run forge install to install the submodule dependencies that are in the project.
To build, use forge build:
{{#include ../output/foundry-template/forge-build:all}}And to test, use forge test:
{{#include ../output/foundry-template/forge-test:all}}ℹ️ Note
If you are already familiar with the foundry, you will notice the
—-zksyncflag; we’ll cover it in detail in the following sections.
