Skip to content

kfactory-dev/kf-website

Repository files navigation

Gatsby

kf-website

Development

Requires Node.js and Yarn package manager.

Install dependencies

yarn

Start a dev server and open the browser

yarn start -o

Build the website and serve it locally

yarn build && yarn serve -o

Nix Flake

Requires NixOS or Nix package manager with flakes enabled.

Enter the development environment installing node, yarn, and ipfs

nix develop

Create a reproducible build

nix build

IPFS

Requires ipfs-cli.

Initialize a new IPFS configuration (if not already exists)

ipfs init

Start IPFS daemon in the background

ipfs daemon &

Generate hash

When using yarn build

ipfs add -rQ public

When using nix build

ipfs add -rQ $(readlink result) 

Pin the website using Pinata

Create an API key with following permissions

  • Pinning Services API
    • Pins
      • addPinObject
      • getPinObject

Configure a remote pinning service

ipfs pin remote service add pinata https://api.pinata.cloud/psa <PINATA_JWT>

Pin the website

ipfs pin remote add --service=pinata <IPFS_HASH>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages