Start by setting up the local environment variables.
cp .env.example .env.local
Create an account on mapbox.
Once you have an account, create a token on mapbox.
Update the .env.local
file in the Cadastre folder with this line of code and your new token from mapbox:
VITE_MAPBOX_TOKEN=your_mapbox_token
If you don't already have an account, create one at Alchemy.
Once you have an account, create a project for GeoWeb and copy the API key.
Update the .env.local
file in the Cadastre folder with this line of code:
VITE_ALCHEMY_API_KEY=your_alchemy_api_key
Install Node Version 18 if you don't have it but stay within LTS.
Use yarn to download and install all your dependencies
yarn
To run locally
yarn dev
To deploy to production, you will need to install docker and run
docker build -t cadastre .
docker run -p 3000:3000 cadastre
During development cycles you will need Optimism Sepolia ETH. There are two ways to obtain OP Sepolia ETH.
-
Faucet Head over to the Optimism faucets list and enter the address of the wallet you would like to fund.
-
Bridge If you already have Sepolia ETH you can use the Optimism Bridge. Connect you wallet, select the Sepolia testnet and the amount you would like to bridge.
If you'd like to contribute create a branch based on develop
and make a PR to be merged in develop
, commits should follow the Conventional Commits specification.