Giter VIP home page Giter VIP logo

js.ipfs.io's Introduction

js.ipfs.io - The js-ipfs project Website.

Welcome to the js.ipfs.io Website repo. This website uses gatsbyjs. Most of the website content is data-driven, you can check the data directory to see the sections information bundled as js files.

Lead Maintainer

Pedro Santos

Table of Contents

Internationalization i18n

Incorrect translation, help us fix it!

Missing language? Help us translate!

You can do it in 2 steps:

1. Create a PR that adds a line to the config file with a new language code

In the file intl/config, add a line for your language. Example, if you were to add Portuguese, you would only have to add the new language to the availableLocales array:

module.exports = {
  defaultLocale: 'en',
  availableLocales: [
    { acronym: 'en', fullForm: 'English' },
    { acronym: 'pt', fullForm: 'Português' }
  ]
}

2. Translate content at Transifex

  $ tx pull -l <lang>
  $ git add intl
  $ git commit

This step can be done by you or a person reviewing the PR. Replace <lang> with the code added to intl/config.js

When you are finished, submit it as a PR to this repo. Once it gets merged into master it will be live at dev.js.ipfs.io. It will be live at js.ipfs.io as soon as the production branch is updated.

Learn more on how to use Transifex

Listing a talk on the website

You can add your talk to the website by creating a PR. You just need to add an object to the publicationsAndTalks array. Example, if you were to add a new entry, you would have to add the link to your talk and its title:

const publicationsAndTalks = [
  {
    link: 'https://www.youtube.com/watch?v=WK4PIGr3RB8',
    active: true,
    title: 'Progress Report on the Decentralized Web, David Dias'
  },
  {
    link: 'https://www.youtube.com/watch?v=2cmbm6iABsI',
    title: 'IPFS on the Brave Browser, Alan Shaw'
  }
]

Want to show what's possible to build with js-ipfs?

Sharing your app with us is very simple! You just need to host your code on codesandbox and edit apps array. Example, if you want to add a new app, you only have to add a new entry to the apps array by adding its title and the corresponding codesandbox share link:

const apps = [
  {
    title: 'Example 1',
    link: 'https://codesandbox.io/embed/qkj8z9l8kq'
  },
  {
    title: 'Example 2',
    link: 'https://codesandbox.io/embed/vv99onw18y'
  }
]

Development

Dependencies

  • gatsbyjs v2 to build the website
  • Node.js >= v10 and npm for build tools
  • Transifex Client for locales
  • ipfs to deploy changes

Install

> git clone https://github.com/ipfs/js.ipfs.io
> npm install

Usage

The following commands are available:

  • npm run develop - Starts a hot-reloading development environment at localhost:8000.
  • npm run build - Generates the static HTML and JavaScript code bundles by performing a production build.
  • npm run lint - Runs aegir lint.

Supported Browsers Versions

We are currently targeting:

Browser Versions
Chrome >= 69
Firefox >= 62
Safari >= 11.1

Publish

When a branch gets merged to master, it is deployed to dev.js.ipfs.

To deploy to js.ipfs.io the code should be merged into the production branch.

  1. Build the project
> npm run build
  1. Init your ipfs daemon (if you haven't done it before)
> ipfs init
  1. Add the public folder to IPFS
> ipfs add -r public/
added <resulting-hash>
  1. Finally, go to the constants folder and paste the resulting hash on the jsIpfsWebsite property of the exported object.

Note: This process will be automated as soon as we tackle this issue.

License

MIT

js.ipfs.io's People

Contributors

achingbrain avatar alanshaw avatar andrew avatar cwaring avatar daviddias avatar dongtianyi avatar fsdiogo avatar hsanjuan avatar hugomrdias avatar lidel avatar mburns avatar nipol avatar olizilla avatar pedromiguelss avatar satazor avatar terichadbourne avatar vasco-santos avatar victorb avatar

Watchers

 avatar

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.