The premier gallery experience for your NFTs.
At Gallery, we use a monorepo tool called moon.
Every time you want to run a task in our repo, it will follow the format moon {command-here}
.
Before moving forward with this README, please install moon
using these instructions
You'll notice there are different apps and packages in the repo, each with its own moon.yml
file. The files list the relevant moon commands to run for each target. If you're unsure about which command to run to boot a specific app or package, refer to the associated moon.yml
.`
Install our node version:
nvm install && nvm use
Install correct yarn version (3.4.1):
yarn set version 3.4.1
Install dependencies:
yarn install
Create a local .env file by copying values from .env.sample:
cp apps/web/.env.sample apps/web/.env
Start app:
moon run web:dev
The app will be running at http://localhost:3000.
/packages/shared
contains shared code that can be utilized by both web and mobile. When developing here, you'll need to run codegen specific to that package, such as moon run shared:codegen-watch
. In other words, just having the web or mobile app running won't automatically handle codegen for shared
– that will need to be a separate process.
Cypress CI is configured as a Github workflow in .github/workflows
.
If you need access to any of the following:
- Test wallet
- Analytics keys
- Sentry keys
- Cypress dashboard
Hit up a member of the core team.
moon run web:test
for testsmoon run web:relay-codegen
to run relay compilermoon run web:relay-watch
to run relay compiler in watch modemoon run web:lint
for lintingmoon run web:typecheck
for checking type validitymoon run web:synpress-run
to run e2e testsmoon run web:synpress-open
to open cypressyarn fetch-schema
to pull graphql schema from productionyarn fetch-schema-dev
to pull graphql schema from development