Forked from Joystream/atlas https://github.com/Joystream/atlas

Bedeho Mender 3c6c9b0eb2 Merge pull request #1431 from Gamaranto/button-outline преди 4 години
packages 3c6c9b0eb2 Merge pull request #1431 from Gamaranto/button-outline преди 4 години
.eslintignore 305d3435b0 Add Tests And CodeCov преди 4 години
.eslintrc.js c60b94fff0 add discover screen, fix some apollo client issues преди 4 години
.gitignore 958772fb0f Merge branch 'init_atlas' into atlas-components-merge преди 4 години
.huskyrc 305d3435b0 Add Tests And CodeCov преди 4 години
.prettierignore c60b94fff0 add discover screen, fix some apollo client issues преди 4 години
.prettierrc.js 5383e74f61 fix prettier issues преди 4 години
README.md 6d62eacef1 add object storage instructions преди 4 години
lerna.json 5383e74f61 fix prettier issues преди 4 години
package.json 4c1e432155 Create ToggleButton And Add Animation To ChannelPreview преди 4 години
tsconfig.json 5383e74f61 fix prettier issues преди 4 години
yarn.lock 4c1e432155 Create ToggleButton And Add Animation To ChannelPreview преди 4 години

README.md

Getting Started

After cloning the repo, run:

$ cd atlas
$ yarn install
$ yarn start

To start the app on localhost:3000, Storybook on localhost:6006 and the bundler in watch mode.

To build the app for distribution, run:

$ yarn build

To run tests (Currently WIP) run:

$ yarn test

Packages

This repo is managed with yarn workspaces

To run a command in a workspace:

$ yarn workspace YOUR_WORKSPACE_NAME YOUR_COMMAND

For example, to add react-spring to atlas-app:

$ yarn workspace atlas-app add react-spring

App package

The app package is located under ./packages/app and is where the actual Atlas application lives. Business logic, full pages and data fetching should all reside here.

Shared folder

Historically, Atlas codebase was split between two packages - app and @joystream/components. Due to build process and developer experience issues it was decided to merge those packages into one until the separation is actually needed. Hence the shared directory under app/src. This folder is what used to be @joystream/components and it's intended to be application-agnostic. That means no Atlas-specific logic (like routing) should be put there, only atomic UI components.

Deploy Previews

Each PR has deploy previews for both for Storybook and for the App on Chromia and Netlify respectively.

Mocked assets

Mocked assets for Atlas are hosted on the Linode object storage provided by Jsgenesis.

The storage is S3-compatible and can be accessed with any S3 client. The endpoint is eu-central-1.linodeobjects.com and a generated keypair must be used to access it.

Example on how to configure s3cmd client for access can be found here.

When inside a directory with all the assets, you can run s3cmd sync --acl-public . s3://atlas-assets to sync your local directory with the remote storage.