/Seachan

Primary LanguageJavaScript

readme

seachan

Welcome to Seachan

development

prerequisites

dfx

download the Internet Computer SDK

sh -ci "$(curl -fsSL https://smartcontracts.org/install.sh)"

docker

sudo pacman -S docker --noconfirm
sudo systemctl enable docker
sudo systemctl start docker

local internet identity

cd $HOME/projects/ic/
git clone https://github.com/dfinity/internet-identity.git
cd internet-identity
sudo systemctl enable docker
sudo systemctl start docker
sudo ./scripts/docker-build
cp $HOME/projects/ic/internet-identity/internet_identity.wasm $HOME/projects/ic/seachan/src/internet-identity/internet_identity.wasm

setup

create project directory

mkdir $HOME/projects/ic && cd !$
git clone https://github.com/dappjack/seachan

(dev) set up new dfx project

dfx new seachan

pull seachan project

cd $HOME/projects/ic/
git clone https://github.com/dappjack/seachan

Then, make sure you have the Internet Identity repo cloned locally, adjacent to this project.

dfx start --background --clean
cd $HOME/projects/ic/internet-identity
rm -rf .dfx/local
II_FETCH_ROOT_KEY=1 II_DUMMY_CAPTCHA=1  dfx deploy --no-wallet --argument '(null)'
pushd

local dev notes

ensure the canister IDs from .dfx/local/canister_ids.json math App and Auth canister IDs

dfx stop killall dfx rm -rf $HOME/projects/ic/seachan/.dfx rm -rf $HOME/projects/ic/internet-identity/.dfx cd $HOME/projects/ic/seachan dfx start –background –clean dfx deploy npm start

deploy locally

dfx deploy –no-wallet –argument ‘(null)’

deploy on the ic

dfx deploy –network ic –no-wallet