Skip to main content

Setting up your project

Let's start by setting up a regular Javascript NodeJS project. Feel free to skip this part if you're already familiar with project setup and head directly to connecting to the Sandbox.

Create a new project

We'll use yarn for managing our project and dependencies, though you can also use npm or your Javascript package manager of choice.

  1. Ensure node version is 18 or higher by running.
node -v
  1. Create a new folder and initialize a new project.
mkdir sample-dapp
cd sample-dapp
yarn init -yp
  1. Add the aztec.js and accounts libraries as dependencies. Also add noir-contracts.js for quick use of example contracts:
yarn add @aztec/aztec.js @aztec/accounts @aztec/noir-contracts.js