| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
IPFS-boot React.js starter, see:
This is a standard react project created using:
npm create vite@latest ipfs-boot-react -- --template react
What differs is main.jsx knows to unmount and package.json has updated build targets
The aim is reproducible builds so docker is involved
docker buildx build --platform=linux/amd64 -t ipfs-boot-react . docker run --rm -i --platform=linux/amd64 -v ./dist:/root/dist ipfs-boot-react > CIDv1 = bafybeih6ahjvidh6r7se5asm2zf53kkpqrhj5phw2mfcx7jdz4uoozj5ja
cp ../IPFS-boot/.env . CID=$(docker run --rm -i --platform=linux/amd64 -v ./dist:/root/dist --env-file .env ipfs-pin | grep CIDv1 | cut -c9-) npx ipfs-boot init https://github.com/user/react123 react123 npx ipfs-boot publish --cid $CID --version v0.0.1 --notes "release notes" cat versions.json
If you have just command runner
cp ../IPFS-boot/.env . npx ipfs-boot init https://github.com/user/react123 react123 just publish v0.0.1 "release notes" cat versions.json
All that remains is send versions.json to your https server, where the bootloader looks (needs CORS), remember dist/ (your app) is at this point now with IPFS
npm install npm run dev
These CIDs are IPFS-boot, when selecting an app version you will see CIDv1 from above
MIT
| Back | FazBrowse Home | New Git URL |