Forked from joystream/joystream-org
https://github.com/Joystream/joystream-org

elif42 1f446c7e48 landing page first draft 3 năm trước cách đây
.storybook b857f9e609 Fix svgs in storybook 4 năm trước cách đây
__mocks__ 517a2bb7e8 Fix role counters not displaying correct data 3 năm trước cách đây
__stories__ 4be1ff1f9e Add constantinople page 4 năm trước cách đây
__tests__ 31da0f7fa6 First sumer testnet page implementation 3 năm trước cách đây
src 1f446c7e48 landing page first draft 3 năm trước cách đây
.babelrc 852a7ad2f1 Add Hydra Page 4 năm trước cách đây
.eslintrc 0c06ac6760 Update Footer component UI 4 năm trước cách đây
.gitignore 0a7a9b374b First try 4 năm trước cách đây
.prettierrc be07b18a61 Specify printWidth in .prettierrc 4 năm trước cách đây
.stylelintrc 3393904faf Merge remote-tracking branch 'origin/master' into JSGEN-37-animated-component 5 năm trước cách đây
.travis.yml 2da0312516 Merge remote-tracking branch 'origin/master' into JSGEN-14-active-roles 5 năm trước cách đây
README.md bc545dcc7a Updating All Branding URL 3 năm trước cách đây
TODO.md 5b6380af8c Review Fixes 4 năm trước cách đây
gatsby-browser.js 766c14e4b0 Add smoothscroll polyfill 5 năm trước cách đây
gatsby-config.js 321c3b56cd Add support for spanish, french, mandarin 3 năm trước cách đây
gatsby-node.js 4f8a5df5d5 Implementation of the Founding Members form functionality 3 năm trước cách đây
gatsby-ssr.js c814af6023 Add default gatsby setup 5 năm trước cách đây
jest-preprocess.js 2f9a55e7e6 Add support for jest tests 5 năm trước cách đây
jest.config.js 8a4a34aa17 Configure enzyme adapter once in a setup file 4 năm trước cách đây
loadershim.js 2f9a55e7e6 Add support for jest tests 5 năm trước cách đây
netlify.toml f61e3388e2 Update netlify node version 3 năm trước cách đây
package.json 3c1207ba36 Merge pull request #355 from DzhideX/fix-stylelint-windows 3 năm trước cách đây
website_new.svg 26c155fe68 Added new repo cover 4 năm trước cách đây
yarn.lock 8a2785d395 Implement dashboard page, install recharts, add translations for dashboard page 3 năm trước cách đây

README.md

Joystream Website

Installation

To install all local dependencies located in package.json use:

yarn

Website

  1. ENVs

To populate project with environment variables create files .env.development for local development and .env.production for final build.

  1. Local development

    gatsby develop
    

Local server will start on http://localhost:8000/

  1. Build

To build Gatsby project run:

yarn build

After the process is complete, production files will be located in the public folder located in the root of the project.

  1. Test

Joystream uses Jest for writing tests. Please make sure to write unit and snapshot tests (update if needed). Pre-commit hook won't allow you committing unless all the tests, linters passes.

Pre-commit hook contains three command for testing: lint, stylelint and test, which will test your scss, js and test files.

Please use this command to run tests locally:

yarn test

Storybook

  1. Local development

This project uses Storybook for development purposes. Components are divided into several categories: Components, Layout, Section, Assets, Pages and by default Other if no category is specified.

Run gatsby develop or gatsby build at least once before running Storybook to generate static files usef in the project. To run the storybook on http://localhost:6006/ use:

yarn storybook
  1. Build

To build storybook run:

yarn build-storybook

After the process is complete, production files will be located in the storybook-static folder located next to other files in the root of the project.

Branding

Assets

All Branding assets are available in joystream design repository. In case any of them changes, a script should be ran to include changes on the joystream branding page, and any changes introduced by it should be commited and deployed.

Assets refresh script:

yarn fetch-assets-data