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

ZK3DEV 412911a09b change index title 4 yıl önce
.github 2728eb643b rename PR checks 4 yıl önce
__generated__ e76a560ad1 remove atlas multi-package structure 4 yıl önce
public 412911a09b change index title 4 yıl önce
scripts 6299b73bb2 rename schema fields 4 yıl önce
src 0d3f36f49a update the prod script URLs (#147) 4 yıl önce
.babelrc e76a560ad1 remove atlas multi-package structure 4 yıl önce
.eslintignore e76a560ad1 remove atlas multi-package structure 4 yıl önce
.eslintrc.js fdbf052a33 upgrade CRA to v4 4 yıl önce
.gitignore 958772fb0f Merge branch 'init_atlas' into atlas-components-merge 4 yıl önce
.huskyrc faa0dcd2c6 remove pre-push test hook 4 yıl önce
.prettierignore 586da5120b remove graphql-tools and @miragejs/graphql workaround (#13) 4 yıl önce
.prettierrc.js 114dded313 fix linting 4 yıl önce
README.md 4d9022d43a update packages section in README 4 yıl önce
apollo.config.js a0c7d68711 add orion/atlas integration 4 yıl önce
config-overrides.js fdbf052a33 upgrade CRA to v4 4 yıl önce
netlify.toml eb6682463d remove build commands from netlify.toml 4 yıl önce
package.json 0d3f36f49a update the prod script URLs (#147) 4 yıl önce
tsconfig.json 586da5120b remove graphql-tools and @miragejs/graphql workaround (#13) 4 yıl önce
tsconfig.paths.json e76a560ad1 remove atlas multi-package structure 4 yıl önce
yarn.lock e39e03051c add navbar and category picker borders (#116) 4 yıl önce

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

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 in 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.

Mocking

Mocked dataset

All the raw mocked data presented in Atlas can be found in src/mocking/data/raw. These JSON files are then parsed and returned by MirageJS on GraphQL requests.

The raw data can be generated by using included scripts (when inside packages/app):

  • yarn mocking:videos
  • yarn mocking:channels
  • yarn mocking:videosMedia - this creates the metadata for provided video files. To do so, all the video files have to be placed inside scripts/mocking/videos.

The scripts will generate new data and automatically place it inside the codebase.

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.