To set things up, we're going first to clone the repository, set up the environment, and finally, build and enter our Docker container!
As mentioned previously, you'll need Git and Docker Compose.
git clone [email protected]:lens-protocol/core.git
(Note: It can be blank for local development!)
cd lens-protocol touch .env
Note: This is only tested on Unix-based systems, Docker facilitates development, but users can still opt not to use it. Windows users, if running into trouble, can consider setting up the WSL.
export USERID=$UID && docker-compose build && docker-compose run --name lens contracts-env bash
Alright, next up, we're going to spin up our own local blockchain and deploy the entire protocol on it.
Open up an additional terminal and execute the following command:
docker exec -it lens bash
To clean up leftover running containers, just execute the following command:
USERID=$UID docker-compose down
Updated 5 months ago