Coder Social home page Coder Social logo

agentofuser / interplanetary-gatsby-starter Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 1.0 6.96 MB

Effortless blogging on the Decentralized Web

Home Page: https://codesandbox.io/s/github/agentofuser/interplanetary-gatsby-starter

License: Other

JavaScript 58.72% TypeScript 41.28%
gatsby-starter gatsby-starter-blog ipfs dweb writing gatsbyjs gatsby blogging static-site ssg

interplanetary-gatsby-starter's Introduction

๐Ÿ›ฐ Interplanetary Gatsby Starter

Effortless blogging on the Decentralized Web

Hi! I'm @agentofuser and this is my first Gatsby starter. It's based on my IPFS+Gatsby blog at https://interplanetarygatsby.com, where I write about things I'm learning in the decentralized publishing space.

The goal of this starter is to provide a full-featured, good-looking default blog to get you writing on the DWeb as effortlessly as possible, without leaving your browser or installing anything, and without any prior knowledge of either Gatsby, IPFS, or even programming.

We're not 100% there yet, but here is how you can get your first dwebsite up:

From CodeSandbox to IPFS

  1. Open this starter on CodeSandbox
  2. Click the Fork button on the top-right corner
  3. Wait for the website preview to show up
  4. Sign up for a free account at pinata.cloud
  5. Go to your Pinata account page
  6. Copy the PINATA API KEY and the PINATA SECRET API KEY
  7. Go back to the CodeSandbox tab
  8. Open the Server Control Panel sidebar (third from the top)
  9. Scroll down to "Secret Keys"
  10. Add two secret keys (note the double _ on the key name):
    • Name: IPFS_DEPLOY_PINATA__API_KEY
    • Value: paste the api key here
    • Click "Save Secret"
    • Name: IPFS_DEPLOY_PINATA__SECRET_API_KEY
    • Value: paste the secret api key here
    • Click "Save Secret"
  11. Scroll up to "Run Scripts", still on the Server Control Panel sidebar
  12. Click yarn stage
  13. Wait and watch as a bunch of output spills out in the terminal

At the end of it, if everything went well, you should see something like this:

โœ” ๐Ÿ“Œ It's pinned to Pinata now with hash:
โ„น ๐Ÿ”— QmdJiFJHmW4DRjbgntS6wnaWbLpcCaw5gLeV8TiAEmj3Je

Your hash might be different.

Now you can see your website by copying that hash to the end of https://gateway.pinata.cloud/ipfs/. In my case, it's:

https://gateway.pinata.cloud/ipfs/QmdJiFJHmW4DRjbgntS6wnaWbLpcCaw5gLeV8TiAEmj3Je

You can send that to a friend and they'll be able to see your website both via the HTTPS gateway and via the peer-to-peer network if they have IPFS installed.

Please give me feedback! :)

Everything worked for you? Awesome! Please ping me on twitter at @agentofuser and let me know. I'd love to hear that!

Also, if you had any trouble, I'll be happy to help you figure it out.

Cheers!

interplanetary-gatsby-starter's People

Contributors

agentofuser avatar barraponto avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

swipswaps

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.